feat(Sku): add sku item previewImgUrl (#4562)
This commit is contained in:
@@ -24,7 +24,7 @@ function getSkuImg(sku: SkuData, selectedSku: SelectedSkuData): string | undefin
|
||||
|
||||
if (id && item.v) {
|
||||
const matchedSku = item.v.filter(skuValue => skuValue.id === id)[0] || {};
|
||||
img = matchedSku.imgUrl || matchedSku.img_url;
|
||||
img = matchedSku.previewImgUrl || matchedSku.imgUrl || matchedSku.img_url;
|
||||
return img;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user