Fixed pagination (#33471)
Signed-off-by: Agnieszka Gancarczyk <agagancarczyk@gmail.com>
This commit is contained in:
parent
9bbe00e3e3
commit
204908d972
1 changed files with 2 additions and 2 deletions
|
@ -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: () =>
|
||||||
|
|
Loading…
Reference in a new issue