From 7313c143ac5b3954732ec4cb98c0a899a4b99267 Mon Sep 17 00:00:00 2001 From: Eylon Malin Date: Wed, 27 Nov 2019 12:08:01 +0200 Subject: use mergeObjectByPathAction for update VfModule properties upon upgrade Issue-ID: VID-603 Change-Id: Icdec60aa0e0522e5af394184c5f700ed2d493e4e Signed-off-by: Eylon Malin --- .../src/app/shared/storeUtil/utils/general/general.reducers.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vid-webpack-master/src/app/shared/storeUtil') diff --git a/vid-webpack-master/src/app/shared/storeUtil/utils/general/general.reducers.ts b/vid-webpack-master/src/app/shared/storeUtil/utils/general/general.reducers.ts index a34322751..f87a97397 100644 --- a/vid-webpack-master/src/app/shared/storeUtil/utils/general/general.reducers.ts +++ b/vid-webpack-master/src/app/shared/storeUtil/utils/general/general.reducers.ts @@ -92,6 +92,9 @@ export function generalReducer(state: ServiceState, action: Action) : ServiceSta if (targetObject) { targetObject = _.merge(targetObject, mergeObjectByPathAction.payload); } + else { + console.error(`Can't find object at ${mergeObjectByPathAction.path.join()}`) + } return newState; } -- cgit 1.2.3-korg