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
1 changed files with 1 additions and 1 deletions

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