From 218d3c144bcb351d05d60274191c32b898c71586 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 1 Jul 2021 20:52:13 +0100 Subject: [PATCH] Emit nodes:change for any updated config node when node deleted/added --- packages/node_modules/@node-red/editor-client/src/js/nodes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/node_modules/@node-red/editor-client/src/js/nodes.js b/packages/node_modules/@node-red/editor-client/src/js/nodes.js index e134487a1..dca9f1674 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/nodes.js +++ b/packages/node_modules/@node-red/editor-client/src/js/nodes.js @@ -367,6 +367,7 @@ RED.nodes = (function() { } else { var users = configNode.users; users.splice(users.indexOf(node),1); + RED.events.emit('nodes:change',configNode) } } } @@ -2032,6 +2033,7 @@ RED.nodes = (function() { if (configNode) { if (configNode.users.indexOf(n) === -1) { configNode.users.push(n); + RED.events.emit('nodes:change',configNode) } } }