mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 01:38:44 +00:00
Show only image records
This commit is contained in:
1 parent
7f6be47a28
commit
17ffa8a9cc
1 file changed
+4
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user