Skip to content

Commit 601bcf4

Browse files
committed
ui: fix SourceNat error when adding a network offering
buildServiceCapabilityParams is a standalone function, so `this` is undefined and `this.selectedServiceProviderMap` threw a TypeError whenever SourceNat was selected, leaving the Add Network Offering form stuck on OK. Use the selectedServiceProviderMap parameter instead.
1 parent 3370d9f commit 601bcf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ui/src/composables/useServiceCapabilityParams.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function buildServiceCapabilityParams (params, values, selectedServicePro
4141
}
4242
// SourceNat capabilities
4343
if (supportedServices.includes('SourceNat')) {
44-
const isNetrisSourceNat = this.selectedServiceProviderMap.SourceNat === 'Netris'
44+
const isNetrisSourceNat = selectedServiceProviderMap.SourceNat === 'Netris'
4545
if (values.redundantroutercapability === true) {
4646
params[`serviceCapabilityList[${serviceCapabilityIndex}].service`] = 'SourceNat'
4747
params[`serviceCapabilityList[${serviceCapabilityIndex}].capabilitytype`] = 'RedundantRouter'

0 commit comments

Comments
 (0)