Showing
1 changed file
with
3 additions
and
1 deletions
@@ -199,7 +199,9 @@ class ProductListWithFilter { | @@ -199,7 +199,9 @@ class ProductListWithFilter { | ||
199 | success: (result) => { | 199 | success: (result) => { |
200 | this.dataRender(result); | 200 | this.dataRender(result); |
201 | 201 | ||
202 | - cacheStore.set(catchKey, result); | 202 | + if (result && result.length) { |
203 | + cacheStore.set(catchKey, result); | ||
204 | + } | ||
203 | }, | 205 | }, |
204 | error: () => { | 206 | error: () => { |
205 | let $divide = $('.search-divide'); | 207 | let $divide = $('.search-divide'); |
-
Please register or login to post a comment