mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
filtering hidden
collections
This commit is contained in:
parent
af3750c200
commit
fa2a93fe9a
@ -6,7 +6,8 @@ import FilterList from './filter';
|
|||||||
|
|
||||||
async function CollectionList() {
|
async function CollectionList() {
|
||||||
const collections = await getCollections();
|
const collections = await getCollections();
|
||||||
return <FilterList list={collections} title="Collections" />;
|
const filteredCollections = collections.filter(collection => !collection.title.toLowerCase().includes('hidden'))
|
||||||
|
return <FilterList list={filteredCollections} title="Collections" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
const skeleton = 'mb-3 h-4 w-5/6 animate-pulse rounded';
|
const skeleton = 'mb-3 h-4 w-5/6 animate-pulse rounded';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user