diff --git a/frontend/editor2d/src/GalleryRootComponent/GalleryRootComponent.tsx b/frontend/editor2d/src/GalleryRootComponent/GalleryRootComponent.tsx index ad2ca09538..948b6c8f42 100644 --- a/frontend/editor2d/src/GalleryRootComponent/GalleryRootComponent.tsx +++ b/frontend/editor2d/src/GalleryRootComponent/GalleryRootComponent.tsx @@ -100,6 +100,10 @@ const aggregateGalleryData = ({ } data.results.forEach((result) => { + if (result.media_type !== "image") { + return; + } + const dateString = result.updated_at as string; const dateObj = new Date(dateString);