@open-rlb/ng-app 3.1.22 → 3.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3093,16 +3093,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImpor
3093
3093
 
3094
3094
  const appFeature = createFeature({
3095
3095
  name: appContextFeatureKey,
3096
- reducer: createReducer(initialAppContextState, on(AppContextActionsInternal.setCurrentApp, (state, { app, mode, url }) => ({ ...state, currentApp: app ? { ...app, viewMode: mode, navigationUrl: url } : null })), on(AppContextActions.removeApp, (state, { appType }) => ({ ...state, apps: state.apps.filter(a => a.type !== appType) })), on(AppContextActions.finalizeApp, (state, { appType, data, appId, actions }) => {
3096
+ reducer: createReducer(initialAppContextState, on(AppContextActionsInternal.setCurrentApp, (state, { app, mode, url }) => ({ ...state, currentApp: app ? { ...app, viewMode: mode, navigationUrl: url } : null })), on(AppContextActions.removeApp, (state, { appType }) => ({ ...state, apps: state.apps.filter(a => a.type !== appType) })), on(AppContextActions.finalizeApp, (state, { appType, data, appId }) => {
3097
3097
  const appsOfType = state.apps.filter(a => a.type === appType);
3098
3098
  if (appsOfType.length === 0)
3099
3099
  throw new Error(`App type: ${appType} not found. Cannot finalize app.`);
3100
3100
  let updatedAppsOfType;
3101
3101
  if (appsOfType.length === 1 && !appsOfType[0].id) {
3102
- updatedAppsOfType = [{ ...appsOfType[0], data, id: appId, actions }];
3102
+ updatedAppsOfType = [{ ...appsOfType[0], data, id: appId }];
3103
3103
  }
3104
3104
  else {
3105
- updatedAppsOfType = [...appsOfType, { ...appsOfType[0], data, id: appId, actions }];
3105
+ updatedAppsOfType = [...appsOfType, { ...appsOfType[0], data, id: appId }];
3106
3106
  }
3107
3107
  const remainingApps = state.apps.filter(a => a.type !== appType);
3108
3108
  return { ...state, apps: [...remainingApps, ...updatedAppsOfType], };