diff --git a/apps/web/src/components/ImagePage.tsx b/apps/web/src/components/ImagePage.tsx index ebecb73..95c9265 100644 --- a/apps/web/src/components/ImagePage.tsx +++ b/apps/web/src/components/ImagePage.tsx @@ -67,7 +67,10 @@ export default function ImagePage() { useEffect(() => { fetch(API) .then(r => r.json()) - .then(setImages) + .then(data => { + setImages(Array.isArray(data) ? data : []) + }) + .catch(() => setImages([])) .finally(() => setLoading(false)) }, [])