ui: tape/TapeRestore: use correct value check for store & mapping

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-03-29 13:25:37 +02:00 committed by Dietmar Maurer
parent 81c0b90447
commit e5a13382b2

View File

@ -23,12 +23,12 @@ Ext.define('PBS.TapeManagement.TapeRestoreWindow', {
onGetValues: function(values) {
let me = this;
let datastores = [];
if (values.store && values.store !== "") {
if (values.store.toString() !== "") {
datastores.push(values.store);
delete values.store;
}
if (values.mapping) {
if (values.mapping.toString() !== "") {
datastores.push(values.mapping);
}
delete values.mapping;