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