Don't fail when collections are not found (#996)

* Don't fail when collections are not found

* fix another error
This commit is contained in:
Tobias Lins
2023-04-26 16:26:52 +02:00
committed by GitHub
parent af21b29b73
commit 9ea5671579
3 changed files with 7 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ export default function ProductGridItems({ products }: { products: Product[] })
amount: product.priceRange.maxVariantPrice.amount,
currencyCode: product.priceRange.maxVariantPrice.currencyCode
}}
src={product.featuredImage.url}
src={product.featuredImage?.url}
width={600}
height={600}
/>