diff options
author | guillaume-peoch-sonarsource <guillaume.peoch@sonarsource.com> | 2023-11-23 15:07:03 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-11-24 20:02:44 +0000 |
commit | 086f2c1ced0da956219181958767683e1d4bb63b (patch) | |
tree | fae70159d9d6a8d1c3d2a0aaeb61a9d64d8d5cea /server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx | |
parent | 798fac2eb3d5e02b0ed8b1c520a12d9e27b1d6c0 (diff) | |
download | sonarqube-086f2c1ced0da956219181958767683e1d4bb63b.tar.gz sonarqube-086f2c1ced0da956219181958767683e1d4bb63b.zip |
SONAR-21086 Use new endpoint '/api/v2/authorizations/groups'
Diffstat (limited to 'server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx b/server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx index 6b491854dbe..a4b4ad084a2 100644 --- a/server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx +++ b/server/sonar-web/src/main/js/apps/groups/components/DeleteGroupForm.tsx @@ -36,12 +36,9 @@ export default function DeleteGroupForm(props: Props) { const { mutate: deleteGroup } = useDeleteGroupMutation(); const onSubmit = () => { - deleteGroup( - { name: group.name }, - { - onSuccess: props.onClose, - }, - ); + deleteGroup(group.id, { + onSuccess: props.onClose, + }); }; const header = translate('groups.delete_group'); |