diff options
author | Alexander NeonXP Kiryukhin <a.kiryukhin@mail.ru> | 2019-05-16 03:59:50 +0300 |
---|---|---|
committer | Alexander NeonXP Kiryukhin <a.kiryukhin@mail.ru> | 2019-05-16 03:59:50 +0300 |
commit | 4b01d81d3daed894bc93f77dbbbe5501a4552447 (patch) | |
tree | 04f95ad5de601687f7517bb7939ebeefabdd25da /src/Store/store.ts | |
parent | 51d12073b36cf858e3edd1c906f1815f63b6ab47 (diff) |
Navigation and optimisation
Diffstat (limited to 'src/Store/store.ts')
-rw-r--r-- | src/Store/store.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Store/store.ts b/src/Store/store.ts index c26f019..b8f4169 100644 --- a/src/Store/store.ts +++ b/src/Store/store.ts @@ -11,7 +11,7 @@ const reducers = { }, { v: "", csrf: "", user: null, loading: false }), 'entities': createReducer({ 'portalSet': (store: any, action: { guid: string, portal: Portal }) => - ({ ...store, portals: { ...store.portals, [action.guid]: action.portal } }), + ({ ...store, portals: { ...store.portals, [action.guid]: { ...action.portal } } }), 'linkSet': (store: any, action: { guid: string, link: Link }) => ({ ...store, links: { ...store.links, [action.guid]: action.link } }), 'fieldSet': (store: any, action: { guid: string, field: Field }) => |