forked from crowetic/commerce
fix error from missing product imgages
This commit is contained in:
parent
470a877bf1
commit
c8cf6e733c
@ -198,7 +198,10 @@ function normalizeLineItem({
|
|||||||
sku: variant?.sku ?? '',
|
sku: variant?.sku ?? '',
|
||||||
name: variant?.name!,
|
name: variant?.name!,
|
||||||
image: {
|
image: {
|
||||||
url: product && product.images ? product?.images[0].file.url : '',
|
url:
|
||||||
|
product?.images && product.images.length > 0
|
||||||
|
? product?.images[0].file.url
|
||||||
|
: '/',
|
||||||
},
|
},
|
||||||
requiresShipping: false,
|
requiresShipping: false,
|
||||||
price: price,
|
price: price,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user