[SHOPTIME-4024]Category/SHow/Show List 사라지는 현상 재수정
This commit is contained in:
@@ -246,7 +246,7 @@ export const getSubCategory =
|
||||
};
|
||||
|
||||
export const continueGetSubCategory =
|
||||
(key, pageNo = 2) =>
|
||||
(key, pageNo) =>
|
||||
(dispatch, getState) => {
|
||||
if (!lastSubCategoryParams) {
|
||||
console.warn("No previous category parameters found");
|
||||
@@ -262,8 +262,8 @@ export const continueGetSubCategory =
|
||||
const startIndex = CATEGORY_DATA_MAX_RESULTS_LIMIT * (pageNo - 1);
|
||||
if (
|
||||
(startIndex <= 1 && !targetData) ||
|
||||
targetData[startIndex] !== null ||
|
||||
totalCount <= startIndex
|
||||
startIndex < targetData.length ||
|
||||
(totalCount -1) <= startIndex
|
||||
) {
|
||||
//ignore query
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user