|
@@ -474,7 +474,7 @@ export function getProductList(reload=false) { |
|
@@ -474,7 +474,7 @@ export function getProductList(reload=false) { |
474
|
return new BrandStoreService(app.host).productList(shopId, channel, order, page, pageSize, allFilterFactors)
|
474
|
return new BrandStoreService(app.host).productList(shopId, channel, order, page, pageSize, allFilterFactors)
|
475
|
.then(json => {
|
475
|
.then(json => {
|
476
|
let payload = parseProductList(json);
|
476
|
let payload = parseProductList(json);
|
477
|
- payload.endReached = payload.currentPage == payload.pageCount;
|
477
|
+ payload.endReached = payload.currentPage == payload.pageCount || payload.list.length < pageSize;
|
478
|
if (payload.currentPage > 1) {
|
478
|
if (payload.currentPage > 1) {
|
479
|
let oldList = productList.list.toJS();
|
479
|
let oldList = productList.list.toJS();
|
480
|
let list = [...oldList, ...payload.list];
|
480
|
let list = [...oldList, ...payload.list];
|