image: upload template form hypervisor fix (#304)

Fixes #300

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Abhishek Kumar 2020-04-22 14:49:09 +05:30 committed by Rohit Yadav
parent 1312ec2b8b
commit 475cc04dd7
1 changed files with 1 additions and 1 deletions

View File

@ -773,7 +773,7 @@ export default {
}
for (let i = 0; i < value.length; i++) {
const zoneSelected = this.zones.opts.filter(zone => zone.name === value[i])
const zoneSelected = this.zones.opts.filter(zone => zone.id === value[i])
if (zoneSelected.length > 0) {
params.zoneid = zoneSelected[0].id