]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: datastore summary: handle missing snapshot of a types
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 29 Oct 2020 14:52:45 +0000 (15:52 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 29 Oct 2020 14:52:53 +0000 (15:52 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/DataStoreSummary.js

index 93bd99a3df3769ec32c1681fcae9e7de1f36784b..fad1070687f3080e22616a376c8ead467a13e2c5 100644 (file)
@@ -72,6 +72,7 @@ Ext.define('PBS.DataStoreInfo', {
                        (gcstatus['disk-bytes'] || Infinity);
 
            let countstext = function(count) {
+               count = count || {};
                return `${count.groups || 0} ${gettext('Groups')}, ${count.snapshots || 0} ${gettext('Snapshots')}`;
            };