mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
UI: fix display of disk size and IOPS fields in the scale VM form (#11553)
This commit is contained in:
parent
a4cf47a9b8
commit
f4802f30ed
@ -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 => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user