[pbs-devel] [PATCH proxmox-backup] ui: tape/BackupOverview: skip tapes without media-set

Dominik Csapak d.csapak at proxmox.com
Thu Feb 11 16:02:19 CET 2021


there is no data on them (yet), even if they belong to a pool

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/tape/BackupOverview.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/tape/BackupOverview.js b/www/tape/BackupOverview.js
index f4eb6654..36791a1d 100644
--- a/www/tape/BackupOverview.js
+++ b/www/tape/BackupOverview.js
@@ -50,6 +50,9 @@ Ext.define('PBS.TapeManagement.BackupOverview', {
 		    continue; // pools not belonging to a pool cannot contain data
 		}
 		let media_set = entry['media-set-name'];
+		if (media_set === undefined) {
+		    continue; // tape does not belong to media-set (yet))
+		}
 		if (data[pool] === undefined) {
 		    data[pool] = {};
 		}
-- 
2.20.1






More information about the pbs-devel mailing list