Showing
1 changed file
with
1 additions
and
1 deletions
@@ -41,7 +41,7 @@ class materialModel extends global.yoho.BaseModel { | @@ -41,7 +41,7 @@ class materialModel extends global.yoho.BaseModel { | ||
41 | goods: [] | 41 | goods: [] |
42 | }; | 42 | }; |
43 | 43 | ||
44 | - if (result && result.data && result.data.product_list) { | 44 | + if (_.get(result, 'data.product_list', [])) { |
45 | let build = []; | 45 | let build = []; |
46 | 46 | ||
47 | build = productProcess.processProductList(result.data.product_list || [], { | 47 | build = productProcess.processProductList(result.data.product_list || [], { |
-
Please register or login to post a comment