bernardodemarco commented on code in PR #10389: URL: https://github.com/apache/cloudstack/pull/10389#discussion_r1954850537
########## ui/src/views/offering/AddNetworkOffering.vue: ########## @@ -853,9 +854,7 @@ export default { params.systemvmtype = 'domainrouter' this.serviceOfferingLoading = true api('listServiceOfferings', params).then(json => { - const listServiceOfferings = json.listserviceofferingsresponse.serviceoffering - this.serviceOfferings = this.serviceOfferings.concat(listServiceOfferings) - this.form.serviceofferingid = this.serviceOfferings.length > 0 ? this.serviceOfferings[0].id : '' + this.serviceOfferings = json.listserviceofferingsresponse.serviceoffering || [] Review Comment: ```suggestion this.serviceOfferings = json?.listserviceofferingsresponse?.serviceoffering || [] ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org