Showing
1 changed file
with
9 additions
and
0 deletions
@@ -136,6 +136,10 @@ const index = (params) => { | @@ -136,6 +136,10 @@ const index = (params) => { | ||
136 | Object.assign(finalResult, { | 136 | Object.assign(finalResult, { |
137 | productFavoriteTotal: result[2].data.product_favorite_total || '0' | 137 | productFavoriteTotal: result[2].data.product_favorite_total || '0' |
138 | }); | 138 | }); |
139 | + } else { | ||
140 | + Object.assign(finalResult, { | ||
141 | + productFavoriteTotal: '0' | ||
142 | + }); | ||
139 | } | 143 | } |
140 | 144 | ||
141 | if (result[3] && result[3].data) { | 145 | if (result[3] && result[3].data) { |
@@ -149,6 +153,11 @@ const index = (params) => { | @@ -149,6 +153,11 @@ const index = (params) => { | ||
149 | brandFavoriteTotal: result[3].data.brand_favorite_total || '0', | 153 | brandFavoriteTotal: result[3].data.brand_favorite_total || '0', |
150 | productBrowse: result[3].data.product_browse || '0' | 154 | productBrowse: result[3].data.product_browse || '0' |
151 | }); | 155 | }); |
156 | + } else { | ||
157 | + Object.assign(finalResult, { | ||
158 | + brandFavoriteTotal: '0', | ||
159 | + productBrowse: '0' | ||
160 | + }); | ||
152 | } | 161 | } |
153 | 162 | ||
154 | if (result[4] && result[4].data) { | 163 | if (result[4] && result[4].data) { |
-
Please register or login to post a comment