From 50d0a8827654ce0f81a5773c8fa53d5c22b097ea Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 10 Dec 2015 15:47:15 +0000 Subject: [PATCH] Ensure tabs are removed from runtime on partial deploy --- red/nodes/flows/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/red/nodes/flows/index.js b/red/nodes/flows/index.js index b93fa5acc..bab9a68d6 100644 --- a/red/nodes/flows/index.js +++ b/red/nodes/flows/index.js @@ -286,7 +286,7 @@ function stop(type,diff) { for (var id in activeFlows) { if (activeFlows.hasOwnProperty(id)) { promises = promises.concat(activeFlows[id].stop(stopList)); - if (!diff || diff.removed[id]) { + if (!diff || diff.removed.indexOf(id)!==-1) { delete activeFlows[id]; } }