From 4061abf58856e97e3a5c751bb77f2a8fbd5cb200 Mon Sep 17 00:00:00 2001 From: agagancarczyk <4890675+agagancarczyk@users.noreply.github.com> Date: Wed, 24 Jan 2024 12:59:32 +0000 Subject: [PATCH] fixed bug (#26453) Signed-off-by: Agnieszka Gancarczyk Co-authored-by: Agnieszka Gancarczyk --- .../src/realm-settings/localization/RealmOverrides.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/apps/admin-ui/src/realm-settings/localization/RealmOverrides.tsx b/js/apps/admin-ui/src/realm-settings/localization/RealmOverrides.tsx index 45112ca91d..241f82d7b5 100644 --- a/js/apps/admin-ui/src/realm-settings/localization/RealmOverrides.tsx +++ b/js/apps/admin-ui/src/realm-settings/localization/RealmOverrides.tsx @@ -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); },