diff --git a/Projects/Foundations/UI/Function-Libraries/ReferenceAttachDetach.js b/Projects/Foundations/UI/Function-Libraries/ReferenceAttachDetach.js index 1842d2068..30c48db0e 100644 --- a/Projects/Foundations/UI/Function-Libraries/ReferenceAttachDetach.js +++ b/Projects/Foundations/UI/Function-Libraries/ReferenceAttachDetach.js @@ -36,11 +36,10 @@ function newFoundationsFunctionLibraryReferenceAttachDetach() { function cleanAttachNodePath(node) { if (node === undefined) { return } if (node.payload === undefined) { return } - if (node.payload !== undefined) { - node.payload.referenceParentCombinedNodePath = undefined - if (node.savedPayload !== undefined) { - node.savedPayload.referenceParentCombinedNodePath = undefined - } + + node.payload.referenceParentCombinedNodePath = undefined + if (node.savedPayload !== undefined) { + node.savedPayload.referenceParentCombinedNodePath = undefined } }