From 2644e16464bb87877a0e2a562edb5afeaed22fd0 Mon Sep 17 00:00:00 2001 From: atanasster Date: Sun, 9 May 2021 16:38:01 +0300 Subject: [PATCH] fix: issue on non-existing control --- core/core/src/controls-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core/src/controls-utils.ts b/core/core/src/controls-utils.ts index 25756c215..e57247c28 100644 --- a/core/core/src/controls-utils.ts +++ b/core/core/src/controls-utils.ts @@ -320,7 +320,7 @@ const controlShortcuts = ( return { type: ControlTypes.OPTIONS, ...propControl, options: control }; } if ( - control.type === ControlTypes.OBJECT && + control?.type === ControlTypes.OBJECT && typeof control.value === 'object' ) { return {