UpdateStore: fix 'undefined' interval

in some cases, we provide a config with interval set to 'undefined',
which gets happily applied to the config, but gets interpreted as '0'
when actually starting the task, resulting in constant api requests

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-04-15 16:30:34 +02:00 committed by Thomas Lamprecht
parent a46c2eb11f
commit d4c342fb73

View File

@ -29,6 +29,9 @@ Ext.define('Proxmox.data.UpdateStore', {
let me = this;
config = config || {};
if (config.interval === undefined) {
delete config.interval;
}
if (!config.storeid) {
throw "no storeid specified";