UI: Fix irrelevant conversion options in import instance modal (#8838)

This commit is contained in:
Vishesh 2024-03-27 18:37:00 +05:30 committed by GitHub
parent 31301f56f6
commit 6c6023b790
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -713,7 +713,7 @@ export default {
page: 1
})
this.fetchKvmHostsForConversion()
if (this.resource.disk.length > 1) {
if (this.resource?.disk?.length > 1) {
this.updateSelectedRootDisk()
}
},

View File

@ -1074,6 +1074,7 @@ export default {
this.sourceHypervisor = value
this.sourceActions = this.AllSourceActions.filter(x => x.sourceDestHypervisors[value])
this.form.sourceAction = this.sourceActions[0].name || ''
this.selectedVmwareVcenter = undefined
this.onSelectSourceAction(this.form.sourceAction)
},
onSelectSourceAction (value) {