[SHOPTIME-4024]Category/SHow/Show List 사라지는 현상 재수정

This commit is contained in:
opacity@t-win.kr
2025-07-07 11:02:51 +09:00
parent 8923c9919e
commit 847b16b3a6

View File

@@ -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;