Fixed pagination (#33471)

Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>
This commit is contained in:
Agnieszka Gancarczyk 2024-10-02 14:26:40 +01:00 committed by GitHub
parent 9bbe00e3e3
commit 204908d972
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -124,6 +124,8 @@ export const RealmOverrides = ({
whoAmI.getLocale(), whoAmI.getLocale(),
}); });
setTranslations(Object.entries(result));
if (filter) { if (filter) {
const searchInTranslations = (idx: number) => { const searchInTranslations = (idx: number) => {
return Object.entries(result).filter((i) => return Object.entries(result).filter((i) =>
@ -146,8 +148,6 @@ export const RealmOverrides = ({
}; };
fetchLocalizationTexts().then((translations) => { fetchLocalizationTexts().then((translations) => {
setTranslations(translations);
const updatedRows: IRow[] = translations.map( const updatedRows: IRow[] = translations.map(
(translation): IRow => ({ (translation): IRow => ({
rowEditBtnAriaLabel: () => rowEditBtnAriaLabel: () =>