Skip to content

Commit

Permalink
fixed bug (keycloak#26453)
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 Jan 24, 2024
1 parent 85ddac2 commit 4061abf
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ export const RealmOverrides = ({
}),
continueButtonLabel: "delete",
continueButtonVariant: ButtonVariant.danger,
onCancel: () => {
setSelectedRowKeys([]);
setAreAllRowsSelected(false);
},
onConfirm: async () => {
try {
for (const key of selectedRowKeys) {
Expand Down Expand Up @@ -563,6 +567,8 @@ export const RealmOverrides = ({
setSelectedRowKeys([
(row.cells?.[0] as IRowCell).props.value,
]);
messageBundles.length === 1 &&
setAreAllRowsSelected(true);
toggleDeleteDialog();
setKebabOpen(false);
},
Expand Down

0 comments on commit 4061abf

Please sign in to comment.