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:
commit
57c44d4b18
@ -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:""
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user