[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; let pageSize = params.pageSize || CATEGORY_DATA_MAX_RESULTS_LIMIT;
if (pageNo === 1) { if (pageNo === 1) {
console.log("###lastSubCategoryParams", lastSubCategoryParams);
console.log("###params", params);
if ( if (
lastSubCategoryParams && lastSubCategoryParams &&
JSON.stringify(lastSubCategoryParams) === JSON.stringify(params) JSON.stringify(lastSubCategoryParams) === JSON.stringify(params)
@@ -260,10 +262,9 @@ export const continueGetSubCategory =
[]; [];
const totalCount = subCategoryData[key]?.total ?? 0; const totalCount = subCategoryData[key]?.total ?? 0;
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] || targetData[startIndex] !== null ||
totalCount <= startIndex totalCount <= startIndex
) { ) {
//ignore query //ignore query

View File

@@ -90,6 +90,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
const shopByMobileLogRef = useRef(null); const shopByMobileLogRef = useRef(null);
useEffect(() => { useEffect(() => {
dispatch(getProductOptionId(undefined)); dispatch(getProductOptionId(undefined));
if (panelInfo?.type === "hotel") { if (panelInfo?.type === "hotel") {
@@ -100,7 +101,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
}) })
); );
} }
if (panelInfo?.type === "theme") { if (panelInfo?.type === "theme") {
dispatch( dispatch(
getThemeCurationDetailInfo({ getThemeCurationDetailInfo({
@@ -110,7 +111,7 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
}) })
); );
} }
if (panelInfo?.prdtId && !panelInfo?.curationId) { if (panelInfo?.prdtId && !panelInfo?.curationId) {
dispatch( dispatch(
getMainCategoryDetail({ getMainCategoryDetail({
@@ -120,7 +121,6 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
}) })
); );
} }
dispatch(getDeviceAdditionInfo()); dispatch(getDeviceAdditionInfo());
}, [ }, [
dispatch, dispatch,