[pbs-devel] [PATCH proxmox-backup 2/2] ui: tape/TapeRestore: use correct value check for store & mapping

Dominik Csapak d.csapak at proxmox.com
Mon Mar 29 13:25:37 CEST 2021


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/tape/window/TapeRestore.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/tape/window/TapeRestore.js b/www/tape/window/TapeRestore.js
index d33080e4..85011cba 100644
--- a/www/tape/window/TapeRestore.js
+++ b/www/tape/window/TapeRestore.js
@@ -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;
-- 
2.20.1






More information about the pbs-devel mailing list