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:
Thomas Lamprecht 2022-05-27 10:59:25 +02:00
parent c9fb0f3887
commit 246275e203

View File

@ -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;
});
},