From fcd2e450c23ec6be7dfacac336c6f207fd6ebebe Mon Sep 17 00:00:00 2001 From: guillaume-peoch-sonarsource Date: Wed, 29 Nov 2023 10:04:16 +0100 Subject: [PATCH] SONAR-21086 Catch errors for new endpoint '/api/v2/authorizations/groups' --- server/sonar-web/src/main/js/api/user_groups.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/api/user_groups.ts b/server/sonar-web/src/main/js/api/user_groups.ts index fbb2fb33941..3b8bc579bb0 100644 --- a/server/sonar-web/src/main/js/api/user_groups.ts +++ b/server/sonar-web/src/main/js/api/user_groups.ts @@ -18,7 +18,6 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import axios from 'axios'; -import { axiosToCatch } from '../helpers/request'; import { Group, Paging } from '../types/types'; const GROUPS_ENDPOINT = '/api/v2/authorizations/groups'; @@ -43,7 +42,7 @@ export function updateGroup( description?: string; }, ) { - return axiosToCatch.patch(`${GROUPS_ENDPOINT}/${id}`, data); + return axios.patch(`${GROUPS_ENDPOINT}/${id}`, data); } export function deleteGroup(id: string) { -- 2.39.5