0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor(console): imporve custom phrase fetch request error handling (#6015)

This commit is contained in:
Xiao Yijun 2024-06-15 11:21:30 +08:00 committed by GitHub
parent d17e26ab30
commit 15a51a4426
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<CustomPhraseResponse>(fetchApi);
const translationData = useMemo(