ui: datastore summary: handle missing snapshot of a types

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-10-29 15:52:45 +01:00
parent 906ef6c5bd
commit f487a622ce
1 changed files with 1 additions and 0 deletions

View 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')}`;
};