From f487a622cef07aa3bb86d77750730ce39bac1dfd Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 29 Oct 2020 15:52:45 +0100 Subject: [PATCH] ui: datastore summary: handle missing snapshot of a types Signed-off-by: Thomas Lamprecht --- www/DataStoreSummary.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/DataStoreSummary.js b/www/DataStoreSummary.js index 93bd99a3..fad10706 100644 --- a/www/DataStoreSummary.js +++ b/www/DataStoreSummary.js @@ -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')}`; };