[이슈] 미국 / Hot Picks
- 호텔부분 selectedIndex 내려주지않는부분 처리건.
This commit is contained in:
@@ -142,7 +142,15 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}, [panelInfo, themeProductInfos, themePrdtId]);
|
||||
|
||||
if (panelInfo && hotelInfos && hotelInfos.length > 0 && themeHotelId) {
|
||||
for (let i = 0; i < hotelInfos.length; i++) {
|
||||
if (hotelInfos[i].hotelId === themeHotelId) {
|
||||
setSelectedIndex(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}, [panelInfo, themeProductInfos, hotelInfos, themeHotelId, themePrdtId]);
|
||||
|
||||
const onSpotlightUpTButton = (e) => {
|
||||
e.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user