From 3ab93ecdd4845303a69146901aa3f84668da8a1d Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Thu, 16 Jun 2022 00:00:02 +0900 Subject: [PATCH] fix disable junction --- .../node_modules/@node-red/editor-client/src/js/ui/view.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js index a15ec32f4..7b42c7e21 100755 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js @@ -5736,7 +5736,12 @@ RED.view = (function() { node.dirty = true; node.dirtyStatus = true; node.changed = true; - RED.events.emit("nodes:change",node); + if (node.type === "junction") { + RED.events.emit("junctions:change",node); + } + else { + RED.events.emit("nodes:change",node); + } } } }