From fa2a93fe9a579fe16f857e48f5d007835fb3c067 Mon Sep 17 00:00:00 2001 From: Samantha Kellow Date: Thu, 23 Nov 2023 11:27:37 +0000 Subject: [PATCH] filtering `hidden` collections --- components/layout/search/collections.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/layout/search/collections.tsx b/components/layout/search/collections.tsx index c45833a39..58143570d 100644 --- a/components/layout/search/collections.tsx +++ b/components/layout/search/collections.tsx @@ -6,7 +6,8 @@ import FilterList from './filter'; async function CollectionList() { const collections = await getCollections(); - return ; + const filteredCollections = collections.filter(collection => !collection.title.toLowerCase().includes('hidden')) + return ; } const skeleton = 'mb-3 h-4 w-5/6 animate-pulse rounded';