Skip to content

Commit 4ecfee2

Browse files
bernardodemarcodhslove
authored andcommitted
UI: fix display of disk size and IOPS fields in the scale VM form (apache#11553)
1 parent 2ffcf8e commit 4ecfee2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/views/compute/ScaleVM.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ export default {
232232
getAPI('listDiskOfferings', {
233233
id: this.selectedOffering.diskofferingid
234234
}).then(response => {
235-
const diskOfferings = response.listdiskofferingsresponse.diskoffering || []
236-
if (this.diskOfferings) {
235+
const diskOfferings = response?.listdiskofferingsresponse?.diskoffering || []
236+
if (diskOfferings?.length > 0) {
237237
this.selectedDiskOffering = diskOfferings[0]
238238
}
239239
}).catch(error => {

0 commit comments

Comments
 (0)