mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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
This commit is contained in:
parent
2c978fb0f0
commit
c8252f9987
@ -118,7 +118,8 @@ export function addTeamGroup(groupId: string): ThunkResult<void> {
|
||||
export function removeTeamGroup(groupId: string): ThunkResult<void> {
|
||||
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());
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user