From 5c1d83631537bf3c0152ce58f1ca749ac3a14807 Mon Sep 17 00:00:00 2001 From: Swetha K Date: Wed, 30 Oct 2024 12:02:55 +0530 Subject: [PATCH] MOSIP-36952: Updated API call in policy group list Signed-off-by: Swetha K --- .../src/pages/admin/policyManager/PolicyGroupList.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pmp-reactjs-ui/src/pages/admin/policyManager/PolicyGroupList.js b/pmp-reactjs-ui/src/pages/admin/policyManager/PolicyGroupList.js index 5697638e..585b2406 100644 --- a/pmp-reactjs-ui/src/pages/admin/policyManager/PolicyGroupList.js +++ b/pmp-reactjs-ui/src/pages/admin/policyManager/PolicyGroupList.js @@ -75,7 +75,12 @@ function PolicyGroupList() { }); try { triggerServerMethod ? setTableDataLoaded(false) : setDataLoaded(false); - const response = await HttpService.post(getPolicyManagerUrl(`/policies/group/search`, process.env.NODE_ENV), request); + const response = await HttpService({ + url: getPolicyManagerUrl('/policies/group/search', process.env.NODE_ENV), + method: 'post', + baseURL: process.env.NODE_ENV !== 'production' ? '' : window._env_.REACT_APP_POLICY_MANAGER_API_BASE_URL, + data: request + }); if (response) { const responseData = response.data; if (responseData && responseData.response) {