We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4cf47a commit f4802f3Copy full SHA for f4802f3
ui/src/views/compute/ScaleVM.vue
@@ -226,8 +226,8 @@ export default {
226
api('listDiskOfferings', {
227
id: this.selectedOffering.diskofferingid
228
}).then(response => {
229
- const diskOfferings = response.listdiskofferingsresponse.diskoffering || []
230
- if (this.diskOfferings) {
+ const diskOfferings = response?.listdiskofferingsresponse?.diskoffering || []
+ if (diskOfferings?.length > 0) {
231
this.selectedDiskOffering = diskOfferings[0]
232
}
233
}).catch(error => {
0 commit comments