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
1 changed files with 1 additions and 1 deletions

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