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 = []