[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 = export const continueGetSubCategory =
(key, pageNo = 2) => (key, pageNo) =>
(dispatch, getState) => { (dispatch, getState) => {
if (!lastSubCategoryParams) { if (!lastSubCategoryParams) {
console.warn("No previous category parameters found"); console.warn("No previous category parameters found");
@@ -262,8 +262,8 @@ export const continueGetSubCategory =
const startIndex = CATEGORY_DATA_MAX_RESULTS_LIMIT * (pageNo - 1); const startIndex = CATEGORY_DATA_MAX_RESULTS_LIMIT * (pageNo - 1);
if ( if (
(startIndex <= 1 && !targetData) || (startIndex <= 1 && !targetData) ||
targetData[startIndex] !== null || startIndex < targetData.length ||
totalCount <= startIndex (totalCount -1) <= startIndex
) { ) {
//ignore query //ignore query
return; return;