From 0dc024c722269835e558dfe93d1a90d777b748a9 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 1 Sep 2023 16:38:46 +0100 Subject: [PATCH] Handle group-scoped nodes inside subflow Fixes #4292 --- packages/node_modules/@node-red/runtime/lib/flows/Subflow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/runtime/lib/flows/Subflow.js b/packages/node_modules/@node-red/runtime/lib/flows/Subflow.js index ef405c6c7..5d52beeb7 100644 --- a/packages/node_modules/@node-red/runtime/lib/flows/Subflow.js +++ b/packages/node_modules/@node-red/runtime/lib/flows/Subflow.js @@ -479,7 +479,7 @@ function remapSubflowNodes(nodes,nodeMap) { } } } - if ((node.type === 'complete' || node.type === 'catch' || node.type === 'status') && node.scope) { + if ((node.type === 'complete' || node.type === 'catch' || node.type === 'status') && Array.isArray(node.scope)) { node.scope = node.scope.map(function(id) { return nodeMap[id]?nodeMap[id].id:"" })