mirror of
https://github.com/node-red/node-red
synced 2024-11-21 07:33:58 +00:00
Merge pull request #4908 from GogoVega/refix-4891
Refix link call node can call out of a subflow
This commit is contained in:
commit
71cfa87303
@ -2419,10 +2419,10 @@ RED.nodes = (function() {
|
||||
if (otherNode.z === n.z) {
|
||||
// Both ends in the same flow/subflow
|
||||
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
|
||||
// not in a subflow
|
||||
return false
|
||||
return true
|
||||
} else if (!!getSubflow(n.z) || !!getSubflow(otherNode.z)) {
|
||||
// One end is in a subflow - remove the link
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user