Skip to content

Commit f4802f3

Browse files
UI: fix display of disk size and IOPS fields in the scale VM form (#11553)
1 parent a4cf47a commit f4802f3

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
@@ -226,8 +226,8 @@ export default {
226226
api('listDiskOfferings', {
227227
id: this.selectedOffering.diskofferingid
228228
}).then(response => {
229-
const diskOfferings = response.listdiskofferingsresponse.diskoffering || []
230-
if (this.diskOfferings) {
229+
const diskOfferings = response?.listdiskofferingsresponse?.diskoffering || []
230+
if (diskOfferings?.length > 0) {
231231
this.selectedDiskOffering = diskOfferings[0]
232232
}
233233
}).catch(error => {

0 commit comments

Comments
 (0)