mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix: URL Encode Groupd IDs for external team sync (#20280)
* Fix: URL Encode Group IDs for external team sync External Group IDs can have special characters. Encode them to make them URL-safe.
This commit is contained in:
parent
4d741ea387
commit
7e96a57c37
@ -149,7 +149,7 @@ export function addTeamGroup(groupId: string): ThunkResult<void> {
|
|||||||
export function removeTeamGroup(groupId: string): ThunkResult<void> {
|
export function removeTeamGroup(groupId: string): ThunkResult<void> {
|
||||||
return async (dispatch, getStore) => {
|
return async (dispatch, getStore) => {
|
||||||
const team = getStore().team.team;
|
const team = getStore().team.team;
|
||||||
await getBackendSrv().delete(`/api/teams/${team.id}/groups/${groupId}`);
|
await getBackendSrv().delete(`/api/teams/${team.id}/groups/${encodeURIComponent(groupId)}`);
|
||||||
dispatch(loadTeamGroups());
|
dispatch(loadTeamGroups());
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user