ui: tape/TapeRestore: use correct value check for store & mapping
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
81c0b90447
commit
e5a13382b2
@ -23,12 +23,12 @@ Ext.define('PBS.TapeManagement.TapeRestoreWindow', {
|
|||||||
onGetValues: function(values) {
|
onGetValues: function(values) {
|
||||||
let me = this;
|
let me = this;
|
||||||
let datastores = [];
|
let datastores = [];
|
||||||
if (values.store && values.store !== "") {
|
if (values.store.toString() !== "") {
|
||||||
datastores.push(values.store);
|
datastores.push(values.store);
|
||||||
delete values.store;
|
delete values.store;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (values.mapping) {
|
if (values.mapping.toString() !== "") {
|
||||||
datastores.push(values.mapping);
|
datastores.push(values.mapping);
|
||||||
}
|
}
|
||||||
delete values.mapping;
|
delete values.mapping;
|
||||||
|
Loading…
Reference in New Issue
Block a user