From 960af87fb0420e31264f8da9509f23b8e01ff88c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 23 Apr 2024 21:17:35 +0200 Subject: [PATCH] Ensure subflow change state is cleared after deploy --- .../node_modules/@node-red/editor-client/src/js/ui/deploy.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js b/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js index a09fdeb01..1e6cf954b 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/deploy.js @@ -612,7 +612,10 @@ RED.deploy = (function() { } }); RED.nodes.eachSubflow(function (subflow) { - subflow.changed = false; + if (subflow.changed) { + subflow.changed = false; + RED.events.emit("subflows:change", subflow); + } }); RED.nodes.eachWorkspace(function (ws) { if (ws.changed || ws.added) {