diff --git a/components/SearchModal.tsx b/components/SearchModal.tsx index 6061c12..f02c9d4 100644 --- a/components/SearchModal.tsx +++ b/components/SearchModal.tsx @@ -113,12 +113,22 @@ function SearchResultItemTemplate({ } function SearchResultItemLoadRemote({ result }: { result: OdSearchResult[number] }) { - const { data, error }: SWRResponse = useSWR(`/api/item/?id=${result.id}`, fetcher) + const { data, error }: SWRResponse = useSWR( + `/api/item/?id=${result.id}`, + fetcher + ) const { t } = useTranslation() if (error) { - return + return ( + + ) } if (!data) { return (