From 4b01d81d3daed894bc93f77dbbbe5501a4552447 Mon Sep 17 00:00:00 2001 From: Alexander NeonXP Kiryukhin Date: Thu, 16 May 2019 03:59:50 +0300 Subject: Navigation and optimisation --- src/Store/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Store') 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 }) => -- cgit v1.2.3