fixed disabling unassign on cancel (#26693)
Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com> Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
parent
d40690bd40
commit
1fe103f260
1 changed files with 4 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue