Skip to content

Commit

Permalink
fixed disabling unassign on cancel (keycloak#26693)
Browse files Browse the repository at this point in the history
Signed-off-by: Agnieszka Gancarczyk <[email protected]>
Co-authored-by: Agnieszka Gancarczyk <[email protected]>
  • Loading branch information
agagancarczyk and agagancarczyk authored Feb 1, 2024
1 parent d40690b commit 1fe103f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/apps/admin-ui/src/components/role-mapping/RoleMapping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ export const RoleMapping = ({
messageKey: t("removeMappingConfirm", { count: selected.length }),
continueButtonLabel: "remove",
continueButtonVariant: ButtonVariant.danger,
onCancel: () => {
setSelected([]);
refresh();
},
onConfirm: async () => {
try {
await Promise.all(deleteMapping(type, id, selected));
Expand Down

0 comments on commit 1fe103f

Please sign in to comment.