mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-10 15:32:05 -03:30
Remove duplicate success message (#39938)
Closes #39937 Signed-off-by: Alexander Schwartz <alexander.schwartz@gmx.net>
This commit is contained in:
parent
e3b3a0d217
commit
d56e561620
@ -45,12 +45,7 @@ export const ExtendedHeader = ({
|
||||
messageKey: t("removeImportedUsersMessage"),
|
||||
continueButtonLabel: "remove",
|
||||
onConfirm: async () => {
|
||||
try {
|
||||
removeImportedUsers();
|
||||
addAlert(t("removeImportedUsersSuccess"), AlertVariant.success);
|
||||
} catch (error) {
|
||||
addError("removeImportedUsersError", error);
|
||||
}
|
||||
await removeImportedUsers();
|
||||
},
|
||||
});
|
||||
|
||||
@ -58,8 +53,8 @@ export const ExtendedHeader = ({
|
||||
try {
|
||||
if (id) {
|
||||
await adminClient.userStorageProvider.removeImportedUsers({ id });
|
||||
addAlert(t("removeImportedUsersSuccess"), AlertVariant.success);
|
||||
}
|
||||
addAlert(t("removeImportedUsersSuccess"), AlertVariant.success);
|
||||
} catch (error) {
|
||||
addError("removeImportedUsersError", error);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user