mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix a wrong statement
This commit is contained in:
parent
7aced85a31
commit
f44487338d
@ -77,7 +77,7 @@ Memory.prototype.clean = function(activeNodes){
|
|||||||
for(var id in this.data){
|
for(var id in this.data){
|
||||||
if(this.data.hasOwnProperty(id) && id !== "global"){
|
if(this.data.hasOwnProperty(id) && id !== "global"){
|
||||||
var idParts = id.split(":");
|
var idParts = id.split(":");
|
||||||
if(!activeNodes.indexOf(idParts[0])){
|
if(activeNodes.indexOf(idParts[0]) === -1){
|
||||||
delete this.data[id];
|
delete this.data[id];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user