Skip to content

Commit

Permalink
Merge pull request #1290 from ProcessMaker/bugfix/FOUR-7111
Browse files Browse the repository at this point in the history
Bugfix/FOUR-7111: Previewing a screen that contains a nested screen and another control causes two 404 error calls
  • Loading branch information
ryancooley authored Nov 22, 2022
2 parents 6c7dc49 + f83179a commit d90fabf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/DataProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ export default {
});
},
getScreen(id, query = "") {
if (!id) {
return null;
}

const cachedPromise = this.cachedScreenPromises.find(
(item) => item.id === id && item.query === query
);
Expand Down
4 changes: 3 additions & 1 deletion src/ValidationsFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ class FormNestedScreenValidations extends Validations {
}

async loadScreen(id) {
if (!id) {
return null;
}
if (!globalObject['nestedScreens']) {
globalObject['nestedScreens'] = {};
}
Expand All @@ -99,7 +102,6 @@ class FormNestedScreenValidations extends Validations {
globalObject.nestedScreens['id_' + id] = response.data.config;
return response.data.config;
}

}

/**
Expand Down

0 comments on commit d90fabf

Please sign in to comment.