1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Allow Flow.getNode to return subflowInstance nodes

Related to #2898
This commit is contained in:
Nick O'Leary 2021-03-31 23:10:54 +01:00
parent 8f424c063e
commit 70632706f9
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -376,6 +376,8 @@ class Flow {
} else if (this.activeNodes[id]) { } else if (this.activeNodes[id]) {
// TEMP: this is a subflow internal node within this flow // TEMP: this is a subflow internal node within this flow
return this.activeNodes[id]; return this.activeNodes[id];
} else if (this.subflowInstanceNodes[id]) {
return this.subflowInstanceNodes[id];
} else if (cancelBubble) { } else if (cancelBubble) {
// The node could be inside one of this flow's subflows // The node could be inside one of this flow's subflows
var node; var node;