Merge branch 'hotfix/recommend' into 'master'
brand-id-undefined See merge request !62
Showing
1 changed file
with
2 additions
and
1 deletions
@@ -62,7 +62,8 @@ const tool = { | @@ -62,7 +62,8 @@ const tool = { | ||
62 | dest.preferenceUrl = `/product/detail/preference${extra}`; | 62 | dest.preferenceUrl = `/product/detail/preference${extra}`; |
63 | } | 63 | } |
64 | 64 | ||
65 | - dest.brandId = origin.brand_info && origin.brand_info.brand_id || 0; | 65 | + // dest.brandId = origin.brand_info && origin.brand_info.brand_id || 0; |
66 | + dest.brandId = _.get(origin, 'brand_info.brand_id', 0); | ||
66 | dest.productSkn = origin.product_skn; | 67 | dest.productSkn = origin.product_skn; |
67 | dest.id = origin.product_id; | 68 | dest.id = origin.product_id; |
68 | 69 |
-
Please register or login to post a comment