Update ReferenceAttachDetach.js

This commit is contained in:
Luis Fernando Molina committed 2020-04-10 12:18:02 +02:00
1 parent 9ef85f40d9
commit b4757923d4
1 file changed
+5 -3
@@ -20,9 +20,11 @@ function newReferenceAttachDetach () {
function completeDetachment (node) {
if (node.payload !== undefined !== undefined) {
if (node.payload.referenceParent.payload !== undefined) {
if (node.payload.referenceParent.payload.uiObject !== undefined) {
node.payload.referenceParent.payload.uiObject.isShowing = false
if (node.payload.referenceParent !== undefined) {
if (node.payload.referenceParent.payload !== undefined) {
if (node.payload.referenceParent.payload.uiObject !== undefined) {
node.payload.referenceParent.payload.uiObject.isShowing = false
}
}
}
}