fixed bug (#26453)
Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com> Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
parent
85ddac26ed
commit
4061abf588
1 changed files with 6 additions and 0 deletions
|
@ -227,6 +227,10 @@ export const RealmOverrides = ({
|
|||
}),
|
||||
continueButtonLabel: "delete",
|
||||
continueButtonVariant: ButtonVariant.danger,
|
||||
onCancel: () => {
|
||||
setSelectedRowKeys([]);
|
||||
setAreAllRowsSelected(false);
|
||||
},
|
||||
onConfirm: async () => {
|
||||
try {
|
||||
for (const key of selectedRowKeys) {
|
||||
|
@ -563,6 +567,8 @@ export const RealmOverrides = ({
|
|||
setSelectedRowKeys([
|
||||
(row.cells?.[0] as IRowCell).props.value,
|
||||
]);
|
||||
messageBundles.length === 1 &&
|
||||
setAreAllRowsSelected(true);
|
||||
toggleDeleteDialog();
|
||||
setKebabOpen(false);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue