diff --git a/packages/console/src/components/ApplicationName/index.tsx b/packages/console/src/components/ApplicationName/index.tsx index 2e47e464f..bb3d4e6c1 100644 --- a/packages/console/src/components/ApplicationName/index.tsx +++ b/packages/console/src/components/ApplicationName/index.tsx @@ -20,7 +20,7 @@ type Props = { function ApplicationName({ applicationId, isLink = false }: Props) { const isAdminConsole = applicationId === adminConsoleApplicationId; - const fetchApi = useApi({ hideErrorToast: true }); + const fetchApi = useApi({ hideErrorToast: ['entity.not_found'] }); const fetcher = useSwrFetcher(fetchApi); const { data, error } = useSWR( !isAdminConsole && `api/applications/${applicationId}`, diff --git a/packages/console/src/components/UserName/index.tsx b/packages/console/src/components/UserName/index.tsx index 0dda7496b..97df6142b 100644 --- a/packages/console/src/components/UserName/index.tsx +++ b/packages/console/src/components/UserName/index.tsx @@ -23,7 +23,7 @@ type Props = { function UserName({ userId, isLink = false }: Props) { const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' }); - const fetchApi = useApi({ hideErrorToast: true }); + const fetchApi = useApi({ hideErrorToast: ['entity.not_found'] }); const fetcher = useSwrFetcher(fetchApi); const { data, error } = useSWR(`api/users/${userId}`, { fetcher,