mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 05:56:59 +00:00
issue#1123 fix
This commit is contained in:
parent
faa7491a55
commit
c8b8778b13
@ -2,6 +2,7 @@ import Grid from 'components/grid';
|
||||
import ProductGridItems from 'components/layout/product-grid-items';
|
||||
import { defaultSort, sorting } from 'lib/constants';
|
||||
import { getProducts } from 'lib/shopify';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
export const runtime = 'edge';
|
||||
|
||||
@ -32,9 +33,11 @@ export default async function SearchPage({
|
||||
</p>
|
||||
) : null}
|
||||
{products.length > 0 ? (
|
||||
<Grid className="grid-cols-1 sm:grid-cols-2 lg:grid-cols-3">
|
||||
<Suspense>
|
||||
<Grid className="grid-cols-1 sm:grid-cols-2 lg:grid-cols-3">
|
||||
<ProductGridItems products={products} />
|
||||
</Grid>
|
||||
</Suspense>
|
||||
) : null}
|
||||
</>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user