ui: tape/BackupOverview: skip tapes without media-set

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

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-02-11 16:02:19 +01:00 committed by Dietmar Maurer
parent f8e1932337
commit 32b88d928a

View File

@ -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] = {};
}