Merge pull request #4642 from node-red/4641-fix-subflow-module-debug-logging

Fix subflow module sending messages to debug sidebar
This commit is contained in:
Nick O'Leary 2024-04-02 20:06:31 +01:00 committed by GitHub
commit 6beae5a806
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -378,7 +378,7 @@
return { id: id, label: RED.nodes.workspace(id).label } //flow id + name
} else {
const instanceNode = RED.nodes.node(id)
const pathLabel = (instanceNode.name || RED.nodes.subflow(instanceNode.type.substring(8)).name)
const pathLabel = (instanceNode.name || RED.nodes.subflow(instanceNode.type.substring(8))?.name || instanceNode.type)
return { id: id, label: pathLabel }
}
})