prettier
This commit is contained in:
parent
bcffc68fdc
commit
64969fac0b
1 changed files with 11 additions and 11 deletions
|
@ -42,18 +42,18 @@ export const GroupsCreateModal = ({
|
|||
|
||||
const submitForm = async () => {
|
||||
if (await form.trigger()) {
|
||||
try {
|
||||
httpClient.doPost(`/admin/realms/${realm}/groups`, {
|
||||
name: createGroupName,
|
||||
});
|
||||
setIsCreateModalOpen(false);
|
||||
setCreateGroupName("");
|
||||
add(t("groupCreated"), AlertVariant.success);
|
||||
} catch (error) {
|
||||
add(`${t("couldNotCreateGroup")} ': '${error}'`, AlertVariant.danger);
|
||||
try {
|
||||
httpClient.doPost(`/admin/realms/${realm}/groups`, {
|
||||
name: createGroupName,
|
||||
});
|
||||
setIsCreateModalOpen(false);
|
||||
setCreateGroupName("");
|
||||
add(t("groupCreated"), AlertVariant.success);
|
||||
} catch (error) {
|
||||
add(`${t("couldNotCreateGroup")} ': '${error}'`, AlertVariant.danger);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
|
|
Loading…
Reference in a new issue