mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Removes unnecessary async on ProductGridItems (#977)
This commit is contained in:
@@ -41,7 +41,6 @@ export default async function CategoryPage({ params }: { params: { collection: s
|
||||
<p className="py-3 text-lg">{`No products found in this collection`}</p>
|
||||
) : (
|
||||
<Grid className="grid-cols-2 lg:grid-cols-3">
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<ProductGridItems products={products} />
|
||||
</Grid>
|
||||
)}
|
||||
|
@@ -33,7 +33,6 @@ export default async function SearchPage({
|
||||
) : null}
|
||||
{products.length > 0 ? (
|
||||
<Grid className="grid-cols-2 lg:grid-cols-3">
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<ProductGridItems products={products} />
|
||||
</Grid>
|
||||
) : null}
|
||||
|
Reference in New Issue
Block a user