1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix linting on boolean check

This commit is contained in:
Nick O'Leary 2023-02-23 23:45:34 +00:00
parent 2ddbb44992
commit bbc1a82c2a
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -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);
}