CSR-110: edit router logic to prevent accidental clearing of pageData
This commit is contained in:
parent
0c80eb40a4
commit
27e43f52fd
1 changed files with 1 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ async function navigate(scenario, currentRoute, isSavingNavigation, optionalQuer
|
|||
|
||||
// Update page data to the store for next page if provided. Otherwise, keep existing page data or set to empty object
|
||||
const existingPageDataForPage = store.getters.pageData(destinationFmgPageValue);
|
||||
baseMixin.methods.savePageDataToStore(destinationFmgPageValue, optionalPageData ? optionalPageData : existingPageDataForPage ?? {});
|
||||
baseMixin.methods.savePageDataToStore(destinationFmgPageValue, Object.keys(optionalPageData).length > 0 ? optionalPageData : existingPageDataForPage ?? {});
|
||||
|
||||
optionalParams.isSavingNavigation = isSavingNavigation;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue