From 15a51a4426d39d31d51c39d3b11741c292ac2e1a Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Sat, 15 Jun 2024 11:21:30 +0800 Subject: [PATCH] refactor(console): imporve custom phrase fetch request error handling (#6015) --- .../ManageLanguage/LanguageEditor/LanguageDetails.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/console/src/pages/SignInExperience/PageContent/Content/LanguagesForm/ManageLanguage/LanguageEditor/LanguageDetails.tsx b/packages/console/src/pages/SignInExperience/PageContent/Content/LanguagesForm/ManageLanguage/LanguageEditor/LanguageDetails.tsx index 2edb9e505..d46e47ce1 100644 --- a/packages/console/src/pages/SignInExperience/PageContent/Content/LanguagesForm/ManageLanguage/LanguageEditor/LanguageDetails.tsx +++ b/packages/console/src/pages/SignInExperience/PageContent/Content/LanguagesForm/ManageLanguage/LanguageEditor/LanguageDetails.tsx @@ -47,7 +47,7 @@ function LanguageDetails() { const [isDeletionAlertOpen, setIsDeletionAlertOpen] = useState(false); const isBuiltIn = isBuiltInLanguageTag(selectedLanguage); const isDefaultLanguage = signInExperience?.languageInfo.fallbackLanguage === selectedLanguage; - const fetchApi = useApi({ hideErrorToast: true }); + const fetchApi = useApi({ hideErrorToast: ['entity.not_found'] }); const fetcher = useSwrFetcher(fetchApi); const translationData = useMemo(