From 1fe103f260f57474e436a3d8861cb0c0a4bcfa2e Mon Sep 17 00:00:00 2001 From: agagancarczyk <4890675+agagancarczyk@users.noreply.github.com> Date: Thu, 1 Feb 2024 14:21:55 +0000 Subject: [PATCH] fixed disabling unassign on cancel (#26693) Signed-off-by: Agnieszka Gancarczyk Co-authored-by: Agnieszka Gancarczyk --- js/apps/admin-ui/src/components/role-mapping/RoleMapping.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/apps/admin-ui/src/components/role-mapping/RoleMapping.tsx b/js/apps/admin-ui/src/components/role-mapping/RoleMapping.tsx index 1c8e548836..4490f0218e 100644 --- a/js/apps/admin-ui/src/components/role-mapping/RoleMapping.tsx +++ b/js/apps/admin-ui/src/components/role-mapping/RoleMapping.tsx @@ -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));