From d40aa7260f405dc2d449891d08f496c444692431 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 16 Oct 2018 11:36:46 +0100 Subject: [PATCH] Mark all newly imported nodes as changed --- packages/node_modules/@node-red/editor-client/src/js/ui/view.js | 2 +- 1 file changed, 1 insertion(+), 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 9746f5e68..ece448c64 100644 --- 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 @@ -2747,7 +2747,7 @@ RED.view = (function() { RED.workspaces.show(new_default_workspace.id); } var new_ms = new_nodes.filter(function(n) { return n.hasOwnProperty("x") && n.hasOwnProperty("y") && n.z == RED.workspaces.active() }).map(function(n) { return {n:n};}); - var new_node_ids = new_nodes.map(function(n){ return n.id; }); + var new_node_ids = new_nodes.map(function(n){ n.changed = true; return n.id; }); // TODO: pick a more sensible root node if (new_ms.length > 0) {