Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* MER-2010

* try to re-run the checks

* Update loadInitialPageState.ts
  • Loading branch information
dtiwarATS committed May 23, 2023
1 parent 43dbf20 commit 2c43eba
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ export const loadInitialPageState = createAsyncThunk(
sessionState['app.active'] = 'none';
// read all user state for the assigned everapps into the session state
/* console.log('INIT PAGE', params); */
if (params.content.custom?.everApps) {
const everAppIds = params.content.custom.everApps.map((everApp: any) => everApp.id);
const everApps = params.content.custom?.everApps;
let everAppIds: any = [];
if (everApps) {
everAppIds = params.content.custom.everApps.map((everApp: any) => everApp.id);
}
if (everAppIds && Array.isArray(everAppIds)) {
const userState = await readGlobalUserState(everAppIds, params.previewMode);
if (typeof userState === 'object') {
const everAppState = Object.keys(userState).reduce((acc: any, key) => {
Expand Down

0 comments on commit 2c43eba

Please sign in to comment.