From c0eabf0438cebf0d8b22a58012b5faff1f25563e Mon Sep 17 00:00:00 2001 From: btsimonh Date: Thu, 11 May 2017 15:39:41 +0100 Subject: [PATCH] Add note of removed flows in diffConfig (#1253) --- red/runtime/nodes/flows/util.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/red/runtime/nodes/flows/util.js b/red/runtime/nodes/flows/util.js index e2a18043a..16b9f461b 100644 --- a/red/runtime/nodes/flows/util.js +++ b/red/runtime/nodes/flows/util.js @@ -203,6 +203,13 @@ module.exports = { var linkMap = {}; var changedTabs = {}; + + // Look for tabs that have been removed + for (id in oldConfig.flows) { + if (oldConfig.flows.hasOwnProperty(id) && (!newConfig.flows.hasOwnProperty(id))) { + removed[id] = oldConfig.allNodes[id]; + } + } // Look for tabs that have been disabled for (id in oldConfig.flows) {