[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
|
||||
|
||||
@@ -90,6 +90,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
|
||||
|
||||
const shopByMobileLogRef = useRef(null);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
dispatch(getProductOptionId(undefined));
|
||||
if (panelInfo?.type === "hotel") {
|
||||
@@ -120,7 +121,6 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
dispatch(getDeviceAdditionInfo());
|
||||
}, [
|
||||
dispatch,
|
||||
|
||||
Reference in New Issue
Block a user