From a0636632a1d9cce6a52bee6dc8b5032995473ad8 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 2 Apr 2024 17:42:19 +0100 Subject: [PATCH] Fix subflow module sending messages to debug sidebar Fixes #4641 --- packages/node_modules/@node-red/nodes/core/common/21-debug.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } })