UI: fix display of disk size and IOPS fields in the scale VM form (#11553)

This commit is contained in:
Bernardo De Marco Gonçalves 2025-09-08 04:23:19 -03:00 committed by GitHub
parent a4cf47a9b8
commit f4802f30ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -226,8 +226,8 @@ export default {
api('listDiskOfferings', { api('listDiskOfferings', {
id: this.selectedOffering.diskofferingid id: this.selectedOffering.diskofferingid
}).then(response => { }).then(response => {
const diskOfferings = response.listdiskofferingsresponse.diskoffering || [] const diskOfferings = response?.listdiskofferingsresponse?.diskoffering || []
if (this.diskOfferings) { if (diskOfferings?.length > 0) {
this.selectedDiskOffering = diskOfferings[0] this.selectedDiskOffering = diskOfferings[0]
} }
}).catch(error => { }).catch(error => {