From 475745b13459211bda4a67a0c28621a67b989f5c Mon Sep 17 00:00:00 2001 From: Yana De Pauw Date: Wed, 7 Dec 2022 09:48:21 +0100 Subject: [PATCH] Remove old test fix --- src/app/app.metareducers.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/app/app.metareducers.ts b/src/app/app.metareducers.ts index 449d0090f0..4cdecdc797 100644 --- a/src/app/app.metareducers.ts +++ b/src/app/app.metareducers.ts @@ -1,5 +1,4 @@ import { StoreActionTypes } from './store.actions'; -import { initialMenusState } from './shared/menu/initial-menus-state'; // fallback ngrx debugger let actionCounter = 0; @@ -19,14 +18,7 @@ export function universalMetaReducer(reducer) { return (state, action) => { switch (action.type) { case StoreActionTypes.REHYDRATE: - state = Object.assign({}, state, action.payload, { - /** - * Reset menus after the store is rehydrated, in order to force them to be recreated client side. - * The reason is that menu options stored on the server may contain methods that don't survive the - * (de)serialization to/from JSON - */ - menus: initialMenusState - }); + state = Object.assign({}, state, action.payload); break; case StoreActionTypes.REPLAY: default: