Home에서 아이템 클릭후 이전버튼 눌렀을 시 로그함수 호출되는 문제 수정

This commit is contained in:
dongyoungKo
2025-05-19 14:15:51 +09:00
parent 6b3ef11abd
commit 731a199120
7 changed files with 50 additions and 6 deletions

View File

@@ -22,6 +22,7 @@ import {
clearThemeDetail,
getThemeCurationDetailInfo,
getThemeHotelDetailInfo,
updateHomeInfo,
} from "../../actions/homeActions";
import {
getMainCategoryDetail,
@@ -217,6 +218,18 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
);
}
//홈에서 디테일페이지로 진입했을 경우
if (panelInfo.nowShelf) {
dispatch(
updateHomeInfo({
name: panel_names.HOME_PANEL,
panelInfo: {
nowShelf: panelInfo.nowShelf,
},
})
);
}
if (isCancelClick) {
ev.stopPropagation();
}