We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03ec5ae commit b2fce31Copy full SHA for b2fce31
src/app/(root)/products/[id]/page.tsx
@@ -155,7 +155,9 @@ export default async function ProductDetailPage({ params }: { params: Promise<{
155
</nav>
156
157
<section className="grid grid-cols-1 gap-10 lg:grid-cols-[1fr_480px]">
158
- <ProductGallery productId={product.id} variants={galleryVariants} className="lg:sticky lg:top-6" />
+ {galleryVariants.length > 0 && (
159
+ <ProductGallery productId={product.id} variants={galleryVariants} className="lg:sticky lg:top-6" />
160
+ )}
161
162
<div className="flex flex-col gap-6">
163
<header className="flex flex-col gap-2">
0 commit comments