chore: prettier source code
This commit is contained in:
@@ -27,11 +27,12 @@ function getSkuImg(
|
||||
): string | undefined {
|
||||
let img;
|
||||
|
||||
sku.tree.some(item => {
|
||||
sku.tree.some((item) => {
|
||||
const id = selectedSku[item.k_s];
|
||||
|
||||
if (id && item.v) {
|
||||
const matchedSku = item.v.filter(skuValue => skuValue.id === id)[0] || {};
|
||||
const matchedSku =
|
||||
item.v.filter((skuValue) => skuValue.id === id)[0] || {};
|
||||
img = matchedSku.previewImgUrl || matchedSku.imgUrl || matchedSku.img_url;
|
||||
return img;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user