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:
parent
246275e203
commit
49d604aec1
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user