From c8252f99874aef5045ea2474a7c451268a87aaff Mon Sep 17 00:00:00 2001 From: Eric Leijonmarck Date: Tue, 28 Mar 2023 14:40:51 +0100 Subject: [PATCH] Team sync: Fix apply query string instead of param (#65433) * fix: apply query string instead of param * Update public/app/features/teams/state/actions.ts --- public/app/features/teams/state/actions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/teams/state/actions.ts b/public/app/features/teams/state/actions.ts index dfd0ba2e199..b47b32ba9bd 100644 --- a/public/app/features/teams/state/actions.ts +++ b/public/app/features/teams/state/actions.ts @@ -118,7 +118,8 @@ export function addTeamGroup(groupId: string): ThunkResult { export function removeTeamGroup(groupId: string): ThunkResult { return async (dispatch, getStore) => { const team = getStore().team.team; - await getBackendSrv().delete(`/api/teams/${team.id}/groups/${encodeURIComponent(groupId)}`); + // need to use query parameter due to escaped characters in the request + await getBackendSrv().delete(`/api/teams/${team.id}/groups?groupId=${encodeURIComponent(groupId)}`); dispatch(loadTeamGroups()); }; }