mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
js: Drop a StorageAwareMap entirely from storage if all keys expired
This commit is contained in:
parent
cfa3af51db
commit
8893db0cbc
@ -234,7 +234,12 @@
|
||||
}, this);
|
||||
}
|
||||
|
||||
storage.set(key, items);
|
||||
if (!! items && items.length) {
|
||||
storage.set(key, items);
|
||||
} else if(items !== null) {
|
||||
storage.remove(key);
|
||||
}
|
||||
|
||||
return (new Icinga.Storage.StorageAwareMap(items).setStorage(storage, key));
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user