From ee0c6cbe6d3b6b94a87a25ca3a204d82c3d088db Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Thu, 9 Apr 2020 10:14:53 +0200 Subject: [PATCH] Update ReferenceAttachDetach.js --- .../Workspace/FunctionLibraries/ReferenceAttachDetach.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DesignSpace/Workspace/FunctionLibraries/ReferenceAttachDetach.js b/DesignSpace/Workspace/FunctionLibraries/ReferenceAttachDetach.js index 643dd37ed..98dadd313 100644 --- a/DesignSpace/Workspace/FunctionLibraries/ReferenceAttachDetach.js +++ b/DesignSpace/Workspace/FunctionLibraries/ReferenceAttachDetach.js @@ -19,7 +19,7 @@ function newReferenceAttachDetach () { } function completeDetachment (node) { - if (node.payload.referenceParent.payload !== undefined && node.payload.referenceParent.payload.uiObject !== undefined) { + if (node.payload !== undefined && node.payload.referenceParent.payload !== undefined && node.payload.referenceParent.payload.uiObject !== undefined) { node.payload.referenceParent.payload.uiObject.isShowing = false }