From fad35b9c785e378ab5f1bc571c66b9996b865cb2 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Wed, 8 Oct 2025 10:19:05 +0200 Subject: [PATCH] adjust Gallery --- lib/src/Components/Profile/Subcomponents/GalleryView.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/src/Components/Profile/Subcomponents/GalleryView.tsx b/lib/src/Components/Profile/Subcomponents/GalleryView.tsx index 18c0d4a3..4d8b7094 100644 --- a/lib/src/Components/Profile/Subcomponents/GalleryView.tsx +++ b/lib/src/Components/Profile/Subcomponents/GalleryView.tsx @@ -24,6 +24,7 @@ export const GalleryView = ({ item }: { item: Item }) => { const appState = useAppState() const images = item.gallery?.flatMap((g, index) => { + if (!g.directus_files_id) return [] const file = g.directus_files_id if (typeof file === 'string') return [] const { id, type, width, height } = file