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

Update packages/node_modules/@node-red/runtime/lib/flows/util.js

This commit is contained in:
Nick O'Leary 2023-04-28 15:25:29 +01:00 committed by GitHub
parent 6fbcec8b98
commit 841f1849c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,9 @@ function parseConfig(config) {
if (subflowDetails) { if (subflowDetails) {
var subflowType = subflowDetails[1] var subflowType = subflowDetails[1]
n.subflow = subflowType; n.subflow = subflowType;
if (flow.subflows[subflowType]) flow.subflows[subflowType].instances.push(n) if (flow.subflows[subflowType]) {
flow.subflows[subflowType].instances.push(n)
}
} }
if (container) { if (container) {
container.nodes[n.id] = n; container.nodes[n.id] = n;