From 601bcf4d98239fa7447a684ae707a3c26118eb95 Mon Sep 17 00:00:00 2001 From: Manoj Kumar Date: Wed, 4 Nov 2026 10:47:53 +0530 Subject: [PATCH] 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. --- ui/src/composables/useServiceCapabilityParams.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/composables/useServiceCapabilityParams.js b/ui/src/composables/useServiceCapabilityParams.js index 99923f9ced8b..99fe6627f2c0 100644 --- a/ui/src/composables/useServiceCapabilityParams.js +++ b/ui/src/composables/useServiceCapabilityParams.js @@ -41,7 +41,7 @@ export function buildServiceCapabilityParams (params, values, selectedServicePro } // SourceNat capabilities if (supportedServices.includes('SourceNat')) { - const isNetrisSourceNat = this.selectedServiceProviderMap.SourceNat === 'Netris' + const isNetrisSourceNat = selectedServiceProviderMap.SourceNat === 'Netris' if (values.redundantroutercapability === true) { params[`serviceCapabilityList[${serviceCapabilityIndex}].service`] = 'SourceNat' params[`serviceCapabilityList[${serviceCapabilityIndex}].capabilitytype`] = 'RedundantRouter'