youmaylikedata 예외처리

This commit is contained in:
고동영
2024-08-28 15:05:21 +09:00
parent e58bb2cd6c
commit f766a95e83

View File

@@ -474,19 +474,22 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
)}
</TBody>
</TPanel>
{lgCatCd && (productData || themeProductInfos) && (
<YouMayLike
isUnable={
productData?.pmtSuptYn === "N" ||
panelInfo?.type === "hotel" ||
panelInfo?.type === "theme"
}
panelInfo={panelInfo}
setSelectedIndex={setSelectedIndex}
productInfo={productData || themeData}
setIsYouMayLikeOpened={setIsYouMayLikeOpened}
/>
)}
{lgCatCd &&
(productData || themeProductInfos) &&
youmaylikeData &&
youmaylikeData.length > 0 && (
<YouMayLike
isUnable={
productData?.pmtSuptYn === "N" ||
panelInfo?.type === "hotel" ||
panelInfo?.type === "theme"
}
panelInfo={panelInfo}
setSelectedIndex={setSelectedIndex}
productInfo={productData || themeData}
setIsYouMayLikeOpened={setIsYouMayLikeOpened}
/>
)}
{activePopup === Config.ACTIVE_POPUP.smsPopup && (
<MobileSendPopUp
open={popupVisible}