From 17ffa8a9cc7698ab1fbec9d1da8a1f45b314a8e7 Mon Sep 17 00:00:00 2001 From: Tanish Manku Date: Tue, 8 Apr 2025 22:49:31 -0700 Subject: [PATCH] Show only image records --- .../src/GalleryRootComponent/GalleryRootComponent.tsx | 4 ++++ 1 file changed, 4 insertions(+) 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);