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 45112ca91dae..241f82d7b5ea 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); },