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

Merge pull request #4301 from node-red/4292-fix-catch-in-subflow

Handle group-scoped nodes inside subflow
This commit is contained in:
Nick O'Leary 2023-09-05 09:43:44 +01:00 committed by GitHub
commit 57c44d4b18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) { node.scope = node.scope.map(function(id) {
return nodeMap[id]?nodeMap[id].id:"" return nodeMap[id]?nodeMap[id].id:""
}) })