Skip to content

Commit

Permalink
fix: pick first image from product.images when mapping taxon.referenc…
Browse files Browse the repository at this point in the history
…es to products
  • Loading branch information
marcomontalbano committed Feb 9, 2023
1 parent b10fdbb commit 7faf45e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const getStaticProps: GetStaticProps<Props, Query> = async ({ params }) =

return {
...product,
images: [product.images[0]],
images: product.images.slice(0, 1),
variants: [],
details: [],
variant: []
Expand Down

0 comments on commit 7faf45e

Please sign in to comment.