[SHOPTIME-4024]Category/SHow/Show List 사라지는 현상 수정
This commit is contained in:
@@ -185,6 +185,8 @@ export const getSubCategory =
|
||||
let pageSize = params.pageSize || CATEGORY_DATA_MAX_RESULTS_LIMIT;
|
||||
|
||||
if (pageNo === 1) {
|
||||
console.log("###lastSubCategoryParams", lastSubCategoryParams);
|
||||
console.log("###params", params);
|
||||
if (
|
||||
lastSubCategoryParams &&
|
||||
JSON.stringify(lastSubCategoryParams) === JSON.stringify(params)
|
||||
@@ -260,10 +262,9 @@ export const continueGetSubCategory =
|
||||
[];
|
||||
const totalCount = subCategoryData[key]?.total ?? 0;
|
||||
const startIndex = CATEGORY_DATA_MAX_RESULTS_LIMIT * (pageNo - 1);
|
||||
|
||||
if (
|
||||
(startIndex <= 1 && !targetData) ||
|
||||
targetData[startIndex] ||
|
||||
targetData[startIndex] !== null ||
|
||||
totalCount <= startIndex
|
||||
) {
|
||||
//ignore query
|
||||
|
||||
Reference in New Issue
Block a user