Browse Source

fix(core): fix flattedRoutes manipulation

pull/2447/head
mehmet-erim 7 years ago
parent
commit
2b2e0be51d
  1. 2
      npm/ng-packs/packages/core/src/lib/states/config.state.ts

2
npm/ng-packs/packages/core/src/lib/states/config.state.ts

@ -229,7 +229,7 @@ export class ConfigState {
const index = flattedRoutes.findIndex(route => route.name === name);
if (index > -1) {
flattedRoutes[index] = newValue as ABP.FullRoute;
flattedRoutes[index] = { ...flattedRoutes[index], ...newValue } as ABP.FullRoute;
}
return patchState({

Loading…
Cancel
Save