Bug fixed - detaching

This commit is contained in:
Luis Fernando Molina committed 2020-04-09 10:13:51 +02:00
1 parent 23519bd24a
commit 478ad46f94
1 file changed
+1 -1
@@ -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
}