From 7f671c9f3ffd0f318213fa89051681117551a127 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Fri, 10 Jul 2020 20:00:18 +0100 Subject: [PATCH] Ensure unknown nodes removed from outliner when node registers Fixes #2646 --- packages/node_modules/@node-red/editor-client/src/js/nodes.js | 1 + 1 file changed, 1 insertion(+) 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 43fdbd5f3..1ea08193e 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 @@ -1671,6 +1671,7 @@ RED.nodes = (function() { } } reimportList.push(convertNode(n)); + RED.events.emit('nodes:remove',n); }); // Remove any links between nodes that are going to be reimported.