fix validation error
This commit is contained in:
parent
a405dc9e13
commit
eb57faf826
1 changed files with 4 additions and 2 deletions
|
@ -41,8 +41,9 @@ export const GroupsCreateModal = ({
|
|||
};
|
||||
|
||||
const submitForm = async () => {
|
||||
if (await form.trigger()) {
|
||||
try {
|
||||
await httpClient.doPost(`/admin/realms/${realm}/groups`, {
|
||||
httpClient.doPost(`/admin/realms/${realm}/groups`, {
|
||||
name: createGroupName,
|
||||
});
|
||||
setIsCreateModalOpen(false);
|
||||
|
@ -51,6 +52,7 @@ export const GroupsCreateModal = ({
|
|||
} catch (error) {
|
||||
add(`${t("couldNotCreateGroup")} ': '${error}'`, AlertVariant.danger);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue