fix broken PLP page

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe
2024-06-22 15:21:30 +07:00
parent 8333eb36fc
commit 7015d1caef
5 changed files with 23 additions and 15 deletions

View File

@@ -2,12 +2,15 @@ import { getProductsInCollection } from 'components/layout/products-list/actions
import FiltersList from './filters-list';
const FiltersContainer = async ({
searchParams
searchParams,
collection
}: {
searchParams?: { [key: string]: string | string[] | undefined };
collection: string;
}) => {
const { filters } = await getProductsInCollection({
searchParams
searchParams,
collection
});
return <FiltersList filters={filters} defaultOpen={false} />;