From f4802f30ed609a0b89b7ba003cdf82f40bc7a040 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernardo=20De=20Marco=20Gon=C3=A7alves?= Date: Mon, 8 Sep 2025 04:23:19 -0300 Subject: [PATCH] UI: fix display of disk size and IOPS fields in the scale VM form (#11553) --- ui/src/views/compute/ScaleVM.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/views/compute/ScaleVM.vue b/ui/src/views/compute/ScaleVM.vue index 4ae02e7a80b..7113e3f2c09 100644 --- a/ui/src/views/compute/ScaleVM.vue +++ b/ui/src/views/compute/ScaleVM.vue @@ -226,8 +226,8 @@ export default { api('listDiskOfferings', { id: this.selectedOffering.diskofferingid }).then(response => { - const diskOfferings = response.listdiskofferingsresponse.diskoffering || [] - if (this.diskOfferings) { + const diskOfferings = response?.listdiskofferingsresponse?.diskoffering || [] + if (diskOfferings?.length > 0) { this.selectedDiskOffering = diskOfferings[0] } }).catch(error => {