From 6c6023b790c87f1b37f78bfacaababe202ef93bf Mon Sep 17 00:00:00 2001 From: Vishesh Date: Wed, 27 Mar 2024 18:37:00 +0530 Subject: [PATCH] UI: Fix irrelevant conversion options in import instance modal (#8838) --- ui/src/views/tools/ImportUnmanagedInstance.vue | 2 +- ui/src/views/tools/ManageInstances.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/views/tools/ImportUnmanagedInstance.vue b/ui/src/views/tools/ImportUnmanagedInstance.vue index a03ef3866ec..9eb74877365 100644 --- a/ui/src/views/tools/ImportUnmanagedInstance.vue +++ b/ui/src/views/tools/ImportUnmanagedInstance.vue @@ -713,7 +713,7 @@ export default { page: 1 }) this.fetchKvmHostsForConversion() - if (this.resource.disk.length > 1) { + if (this.resource?.disk?.length > 1) { this.updateSelectedRootDisk() } }, diff --git a/ui/src/views/tools/ManageInstances.vue b/ui/src/views/tools/ManageInstances.vue index a869768bf39..b61c8a9efa5 100644 --- a/ui/src/views/tools/ManageInstances.vue +++ b/ui/src/views/tools/ManageInstances.vue @@ -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) {