1
0
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:
Nick O'Leary 2019-03-12 14:40:47 +00:00
parent d3d9533493
commit c944eaab5c
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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;