Commit 7584bb4b by Ravindra Kanojiya

updated product by id

1 parent 64766841
......@@ -85,7 +85,7 @@ const InnerDetailsSubCategory = ({ products }) => {
<Image
width={868}
height={560}
src={cleanImage(product?.image?.[0]?.url)}
src={cleanImage([...(product?.image || [])].sort((a, b) => (Number(a.id) || 0) - (Number(b.id) || 0))?.[0]?.url)}
alt={product?.title}
/>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!