ui: datastore options: avoid breakage if rrd store cannot be queried

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-27 10:59:42 +02:00
parent 246275e203
commit 49d604aec1

View File

@ -310,8 +310,8 @@ Ext.define('PBS.DataStoreSummary', {
});
me.mon(me.rrdstore, 'load', function(store, records, success) {
let has_io_ticks = records.some((rec) => rec?.data?.io_ticks !== undefined);
me.down('#ioDelayChart').setVisible(!success || has_io_ticks);
let hasIoTicks = records?.some((rec) => rec?.data?.io_ticks !== undefined);
me.down('#ioDelayChart').setVisible(!success || hasIoTicks);
}, undefined, { single: true });
me.query('proxmoxRRDChart').forEach((chart) => {