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:
parent
2ddbb44992
commit
bbc1a82c2a
@ -608,7 +608,7 @@ RED.nodes = (function() {
|
|||||||
const ws = workspaces[z]
|
const ws = workspaces[z]
|
||||||
if (ws) {
|
if (ws) {
|
||||||
const contentsChanged = tabDirtyMap[z].size > 0 || tabDeletedNodesMap[z].size > 0
|
const contentsChanged = tabDirtyMap[z].size > 0 || tabDeletedNodesMap[z].size > 0
|
||||||
if (!!ws.contentsChanged !== contentsChanged) {
|
if (Boolean(ws.contentsChanged) !== contentsChanged) {
|
||||||
ws.contentsChanged = contentsChanged
|
ws.contentsChanged = contentsChanged
|
||||||
RED.events.emit("flows:change", ws);
|
RED.events.emit("flows:change", ws);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user