mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix max call stack err when getting node from inside subflow
This commit is contained in:
parent
d3d9533493
commit
c944eaab5c
@ -313,7 +313,7 @@ class Flow {
|
||||
} else if (this.activeNodes[id]) {
|
||||
// TEMP: this is a subflow internal node within this flow
|
||||
return this.activeNodes[id];
|
||||
} else {
|
||||
} else if (cancelBubble) {
|
||||
// The node could be inside one of this flow's subflows
|
||||
var node;
|
||||
for (var sfId in this.subflowInstanceNodes) {
|
||||
@ -324,10 +324,8 @@ class Flow {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if (!cancelBubble) {
|
||||
} else {
|
||||
// Node not found inside this flow - ask the parent
|
||||
return this.parent.getNode(id);
|
||||
}
|
||||
return undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user