From baa1a2cfb1dec0607d63163e60da606ea64ad8c1 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 17 Apr 2020 10:49:31 +0200 Subject: [PATCH] Update UiObject.js --- CanvasApp/FloatingSpace/UiObject.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CanvasApp/FloatingSpace/UiObject.js b/CanvasApp/FloatingSpace/UiObject.js index e29e2ecbf..43f389648 100644 --- a/CanvasApp/FloatingSpace/UiObject.js +++ b/CanvasApp/FloatingSpace/UiObject.js @@ -899,7 +899,11 @@ function newUiObject () { thisObject.formulaEditor.deactivate() } - if (thisObject.payload !== undefined && thisObject.isOnFocus === false && thisObject.payload.referenceParent !== undefined) { + if (thisObject.payload !== undefined && + thisObject.isOnFocus === false && + thisObject.payload.referenceParent !== undefined && + thisObject.payload.referenceParent.payload !== undefined && + thisObject.payload.referenceParent.payload.uiObject !== undefined) { thisObject.payload.referenceParent.payload.uiObject.isShowing = false } }