diff --git a/src/realm-settings/LocalizationTab.tsx b/src/realm-settings/LocalizationTab.tsx index cf36c745e7..7c952dad9e 100644 --- a/src/realm-settings/LocalizationTab.tsx +++ b/src/realm-settings/LocalizationTab.tsx @@ -73,14 +73,15 @@ export const LocalizationTab = ({ }); const loader = async () => { - if (realm) { + try { const result = await adminClient.realms.getRealmLocalizationTexts({ realm: realm.realm!, selectedLocale: getValues("defaultLocale") || "en", }); return Object.keys(result).map((key) => [key, result[key]]); + } catch (error) { + return [[]]; } - return [[]]; }; const handleModalToggle = () => {