From bbc1a82c2a0adfdaf1f35db4e4b8fba49552b17d Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 23 Feb 2023 23:45:34 +0000 Subject: [PATCH] Fix linting on boolean check --- packages/node_modules/@node-red/editor-client/src/js/nodes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0c8bc83b6..05256343b 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 @@ -608,7 +608,7 @@ RED.nodes = (function() { const ws = workspaces[z] if (ws) { const contentsChanged = tabDirtyMap[z].size > 0 || tabDeletedNodesMap[z].size > 0 - if (!!ws.contentsChanged !== contentsChanged) { + if (Boolean(ws.contentsChanged) !== contentsChanged) { ws.contentsChanged = contentsChanged RED.events.emit("flows:change", ws); }