UI: Prevent failure when loading network offerings when physical network has a tag (#13503)

Co-authored-by: Pearl Dsilva <pearl1954@gmail.com>
This commit is contained in:
Pearl Dsilva 2026-07-01 04:25:09 -04:00 committed by GitHub
parent 097a57967b
commit 006831daaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ export default {
this.networkOfferings = []
this.selectedNetworkOffering = {}
getAPI('listNetworkOfferings', params).then(json => {
this.networkOfferings = json.listnetworkofferingsresponse.networkoffering
this.networkOfferings = json.listnetworkofferingsresponse.networkoffering || []
this.networkOfferings = this.networkOfferings.filter(offering => offering.fornsx === this.selectedZone.isnsxenabled)
if (!this.selectedZone.routedmodeenabled) {
this.networkOfferings = this.networkOfferings.filter(offering => offering.networkmode !== 'ROUTED')