From bfeeba3790cdbc7035cbc06cb21405a8fb83e378 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Fri, 17 Apr 2020 13:05:49 +0530 Subject: [PATCH] image: local upload zone selection fix (#274) Fixes #269 Signed-off-by: Abhishek Kumar Signed-off-by: Rohit Yadav --- ui/src/views/image/RegisterOrUploadTemplate.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/src/views/image/RegisterOrUploadTemplate.vue b/ui/src/views/image/RegisterOrUploadTemplate.vue index ad8617887b9..adb901f7c63 100644 --- a/ui/src/views/image/RegisterOrUploadTemplate.vue +++ b/ui/src/views/image/RegisterOrUploadTemplate.vue @@ -751,6 +751,9 @@ export default { this.$set(this.format, 'opts', format) }, handlerSelectZone (value) { + if (!Array.isArray(value)) { + value = [value] + } this.validZone(value) this.hyperVisor.opts = []