Merge pull request #3733 from node-red-hitachi/fix-debug-message-handling

fix handling of global debug message
This commit is contained in:
Nick O'Leary 2022-07-04 21:01:35 +01:00 committed by GitHub
commit 8daade0021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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]);