[SHOPTIME-3483] Featured Brands / Recommended Shows / VOD Full 화면에서 Featured Shows 데이터 미노출
[수정파일] 1. PlayerPanel.jsx [수정내용] 1. VOD일 경우 showDetailInfo 에 있는 카테고리 데이터로 getFullVideoInfo API 호출
This commit is contained in:
@@ -926,14 +926,6 @@ const PlayerPanel = ({
|
||||
if (panelInfo.shptmBanrTpNm === "LIVE") {
|
||||
dispatch(getMainLiveShow());
|
||||
}
|
||||
|
||||
if (panelInfo.shptmBanrTpNm !== "MEDIA") {
|
||||
dispatch(
|
||||
getHomeFullVideoInfo({
|
||||
lgCatCd: panelInfo.lgCatCd,
|
||||
})
|
||||
);
|
||||
}
|
||||
}, [
|
||||
dispatch,
|
||||
panelInfo?.curationId,
|
||||
@@ -943,6 +935,20 @@ const PlayerPanel = ({
|
||||
panelInfo?.shptmBanrTpNm,
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
if (
|
||||
panelInfo.shptmBanrTpNm === "VOD" &&
|
||||
showDetailInfo &&
|
||||
showDetailInfo.length > 0
|
||||
) {
|
||||
dispatch(
|
||||
getHomeFullVideoInfo({
|
||||
lgCatCd: showDetailInfo[0]?.showCatCd,
|
||||
})
|
||||
);
|
||||
}
|
||||
}, [showDetailInfo, panelInfo.shptmBanrTpNm]);
|
||||
|
||||
useEffect(() => {
|
||||
if (
|
||||
playListInfo &&
|
||||
|
||||
Reference in New Issue
Block a user