ui: datastore options: avoid breakage if active-ops cannot be queried
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
c9fb0f3887
commit
246275e203
|
@ -34,8 +34,8 @@ Ext.define('PBS.Datastore.Options', {
|
|||
|
||||
view.mon(me.activeOperationsRstore, 'load', (store, data, success) => {
|
||||
let activeTasks = me.getView().maintenanceActiveTasks;
|
||||
activeTasks.read = data[0].data.value;
|
||||
activeTasks.write = data[1].data.value;
|
||||
activeTasks.read = data?.[0]?.data.value ?? 0;
|
||||
activeTasks.write = data?.[1]?.data.value ?? 0;
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue