diff --git a/ui/src/views/compute/ScaleVM.vue b/ui/src/views/compute/ScaleVM.vue index 4ae02e7a80bd..7113e3f2c094 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 => {