Delete Objects with References
This commit is contained in:
1 parent
375d30dcb2
commit
bd3016877f
2 files changed
+25
-77
No files matched your search
@@ -54,7 +54,6 @@ function newReferenceAttachDetach () {
|
||||
}
|
||||
|
||||
function completeDetachment (node) {
|
||||
node.payload.referenceParent = undefined
|
||||
for (let i = 0; i < node.payload.referenceParent.referenceChildren.length; i++) {
|
||||
let child = node.payload.referenceParent.referenceChildren[i]
|
||||
if (child.id === node.id) {
|
||||
@@ -62,5 +61,6 @@ function newReferenceAttachDetach () {
|
||||
return
|
||||
}
|
||||
}
|
||||
node.payload.referenceParent = undefined
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user