diff --git a/packages/node_modules/@node-red/nodes/core/common/21-debug.html b/packages/node_modules/@node-red/nodes/core/common/21-debug.html index 1c33ad848..82cb3bac7 100644 --- a/packages/node_modules/@node-red/nodes/core/common/21-debug.html +++ b/packages/node_modules/@node-red/nodes/core/common/21-debug.html @@ -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 } } })