Refix link call node can call out of a subflow

This commit is contained in:
GogoVega 2024-10-10 08:53:33 +02:00
parent 27b54199f5
commit 802b116b01
No known key found for this signature in database
GPG Key ID: E1E048B63AC5AC2B

View File

@ -2419,10 +2419,10 @@ RED.nodes = (function() {
if (otherNode.z === n.z) { if (otherNode.z === n.z) {
// Both ends in the same flow/subflow // Both ends in the same flow/subflow
return true return true
} else if (n.type === "link call" && !!getSubflow(otherNode.z)) { } else if (n.type === "link call" && !getSubflow(otherNode.z)) {
// Link call node can call out of a subflow as long as otherNode is // Link call node can call out of a subflow as long as otherNode is
// not in a subflow // not in a subflow
return false return true
} else if (!!getSubflow(n.z) || !!getSubflow(otherNode.z)) { } else if (!!getSubflow(n.z) || !!getSubflow(otherNode.z)) {
// One end is in a subflow - remove the link // One end is in a subflow - remove the link
return false return false