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

This commit is contained in:
opacity@t-win.kr
2025-07-04 15:00:56 +09:00
parent ebc4092f65
commit 055b8fec20
2 changed files with 6 additions and 5 deletions

View File

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

View File

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