]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: tape/TapeRestore: fix restoring without mapping
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 29 Mar 2021 11:25:36 +0000 (13:25 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 8 Apr 2021 08:02:17 +0000 (10:02 +0200)
we have to delete the 'mapping' variable in any case since it's not
a valid api parameter

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/tape/window/TapeRestore.js

index a9deb745f23080498b2eb6aedc952acce76dbd52..d33080e4a48d4581ef38e9c389cd0eb13c8bb668 100644 (file)
@@ -30,8 +30,8 @@ Ext.define('PBS.TapeManagement.TapeRestoreWindow', {
 
                if (values.mapping) {
                    datastores.push(values.mapping);
-                   delete values.mapping;
                }
+               delete values.mapping;
 
                values.store = datastores.join(',');