Update NodeChildren.js

This commit is contained in:
Luis Fernando Molina committed 2020-10-29 17:20:54 +01:00
1 parent 074437d3ec
commit 4d5db8e254
1 file changed
+1 -2
@@ -92,7 +92,7 @@ function newSuperalgosUtilitiesNodeChildren() {
switch (property.type) {
case 'node': {
let child = startingNode[property.name]
if (child === undefined) { continue }
if (child.payload !== undefined) {
if (child.payload.referenceParent !== undefined) {
if (child.payload.referenceParent.id === checkNode.id) {
@@ -121,7 +121,6 @@ function newSuperalgosUtilitiesNodeChildren() {
}
}
}
return true
}
}