forked from crowetic/commerce
avoid malformed url with vendure (#622)
This commit is contained in:
parent
4b2df2242c
commit
c95f292743
@ -9,7 +9,13 @@ export function normalizeSearchResult(item: SearchResultFragment): Product {
|
|||||||
description: item.description,
|
description: item.description,
|
||||||
slug: item.slug,
|
slug: item.slug,
|
||||||
path: item.slug,
|
path: item.slug,
|
||||||
images: [{ url: item.productAsset?.preview + '?w=800&mode=crop' || '' }],
|
images: [
|
||||||
|
{
|
||||||
|
url: item.productAsset?.preview
|
||||||
|
? item.productAsset?.preview + '?w=800&mode=crop'
|
||||||
|
: '',
|
||||||
|
},
|
||||||
|
],
|
||||||
variants: [],
|
variants: [],
|
||||||
price: {
|
price: {
|
||||||
value: (item.priceWithTax as any).min / 100,
|
value: (item.priceWithTax as any).min / 100,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user