public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] ui: tape/BackupOverview: skip tapes without media-set
@ 2021-02-11 15:02 Dominik Csapak
  2021-02-12  7:53 ` [pbs-devel] applied: " Dietmar Maurer
  0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2021-02-11 15:02 UTC (permalink / raw)
  To: pbs-devel

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

Signed-off-by: Dominik Csapak <d.csapak@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-12  7:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-11 15:02 [pbs-devel] [PATCH proxmox-backup] ui: tape/BackupOverview: skip tapes without media-set Dominik Csapak
2021-02-12  7:53 ` [pbs-devel] applied: " Dietmar Maurer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal