Skip to content

Commit

Permalink
fix(console): hide error toast for non-existed application in audit logs
Browse files Browse the repository at this point in the history
  • Loading branch information
charIeszhao committed Jul 3, 2024
1 parent afd2d22 commit fb4beef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/console/src/components/ApplicationName/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Props = {
function ApplicationName({ applicationId, isLink = false }: Props) {
const isAdminConsole = applicationId === adminConsoleApplicationId;

const fetchApi = useApi({ hideErrorToast: ['entity.not_found'] });
const fetchApi = useApi({ hideErrorToast: ['entity.not_found', 'entity.not_exists_with_id'] });
const fetcher = useSwrFetcher<Application>(fetchApi);
const { data, error } = useSWR<Application, RequestError>(
!isAdminConsole && `api/applications/${applicationId}`,
Expand Down

0 comments on commit fb4beef

Please sign in to comment.