From 67f45532139a72e64f9ab8ba1b7a0eae8c776235 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Mon, 4 Jul 2022 10:45:20 +0900 Subject: [PATCH] fix handling of global debug message --- .../node_modules/@node-red/nodes/core/common/21-debug.html | 3 +++ 1 file changed, 3 insertions(+) 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 f861f518b..a85a4892b 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 @@ -252,6 +252,9 @@ if (pathParts.length === 1) { // The source node is on a flow - so can use its id to find sourceNode = RED.nodes.node(o.id); + if (pathParts[0] === "global") { + pathParts = []; + } } else if (pathParts.length > 1) { // Highlight the subflow instance node. sourceNode = RED.nodes.node(pathParts[1]);