reset selected after action (#30001)
fixes: #29981 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
0d2adbb75d
commit
56c955df20
2 changed files with 2 additions and 0 deletions
|
@ -154,6 +154,7 @@ export const RoleMapping = ({
|
|||
try {
|
||||
await Promise.all(deleteMapping(adminClient, type, id, selected));
|
||||
addAlert(t("clientScopeRemoveSuccess"), AlertVariant.success);
|
||||
setSelected([]);
|
||||
refresh();
|
||||
} catch (error) {
|
||||
addError("clientScopeRemoveError", error);
|
||||
|
|
|
@ -117,6 +117,7 @@ export const UserGroups = ({ user }: UserGroupsProps) => {
|
|||
),
|
||||
);
|
||||
|
||||
setSelectedGroups([]);
|
||||
addAlert(t("removedGroupMembership"), AlertVariant.success);
|
||||
} catch (error) {
|
||||
addError("removedGroupMembershipError", error);
|
||||
|
|
Loading…
Reference in a new issue