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

Handle group-scoped nodes inside subflow

Fixes #4292
This commit is contained in:
Nick O'Leary 2023-09-01 16:38:46 +01:00
parent 2478a7194e
commit 0dc024c722
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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:""
})