Skip to content

Commit

Permalink
Merge pull request medusajs#10 from medusajs/fix/thumbnail-as-feature…
Browse files Browse the repository at this point in the history
…d-img

fix: use thumbnail as featured image
  • Loading branch information
VariableVic authored May 11, 2023
2 parents 0cb36b4 + 1a0c2eb commit 99abe4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/medusa/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ const reshapeProduct = (product: MedusaProduct): Product => {
const tags = product.tags?.map((tag) => tag.value) || [];
const descriptionHtml = product.description ?? '';
const featuredImage = {
url: product.images?.[0]?.url ?? '',
altText: product.images?.[0]?.id ?? ''
url: product.thumbnail ?? '',
altText: product.title ?? ''
};
const availableForSale = product.variants?.[0]?.purchasable || true;

Expand Down

0 comments on commit 99abe4d

Please sign in to comment.