[FeaturedBrnadsPanel] issue fixed, SHOPTIME-2803 서비스운영(DXC)
This commit is contained in:
@@ -184,39 +184,47 @@ export const getBrandRecommendedShowInfo = (props) => (dispatch, getState) => {
|
||||
const onSuccess = (response) => {
|
||||
// console.log("getBrandRecommendedShowInfo onSuccess", response.data);
|
||||
|
||||
const brandRecommendedShowCategoryInfo =
|
||||
response.data.data?.brandRecommendedShowCategoryInfo;
|
||||
const brandRecommendedShowInfo =
|
||||
response.data.data?.brandRecommendedShowInfo;
|
||||
const firstCatCd = brandRecommendedShowCategoryInfo[0]?.catCd.toString();
|
||||
// pyh, delete later
|
||||
// const brandRecommendedShowCategoryInfo =
|
||||
// response.data.data?.brandRecommendedShowCategoryInfo;
|
||||
// const brandRecommendedShowInfo =
|
||||
// response.data.data?.brandRecommendedShowInfo;
|
||||
// const firstCatCd = brandRecommendedShowCategoryInfo[0]?.catCd.toString();
|
||||
|
||||
let filteredBrandRecommendedShowInfo;
|
||||
// let filteredBrandRecommendedShowInfo;
|
||||
|
||||
if (
|
||||
brandRecommendedShowCategoryInfo &&
|
||||
brandRecommendedShowInfo &&
|
||||
firstCatCd
|
||||
) {
|
||||
if (catCd === undefined) {
|
||||
filteredBrandRecommendedShowInfo = brandRecommendedShowInfo
|
||||
.filter((showInfo) => firstCatCd === showInfo?.catCd)
|
||||
.slice(0, 10);
|
||||
} else {
|
||||
filteredBrandRecommendedShowInfo = brandRecommendedShowInfo
|
||||
.filter((showInfo) => catCd === showInfo?.catCd)
|
||||
.slice(0, 10);
|
||||
}
|
||||
}
|
||||
// if (
|
||||
// brandRecommendedShowCategoryInfo &&
|
||||
// brandRecommendedShowInfo &&
|
||||
// firstCatCd
|
||||
// ) {
|
||||
// if (catCd === undefined) {
|
||||
// filteredBrandRecommendedShowInfo = brandRecommendedShowInfo
|
||||
// .filter((showInfo) => firstCatCd === showInfo?.catCd)
|
||||
// .slice(0, 10);
|
||||
// } else {
|
||||
// filteredBrandRecommendedShowInfo = brandRecommendedShowInfo
|
||||
// .filter((showInfo) => catCd === showInfo?.catCd)
|
||||
// .slice(0, 10);
|
||||
// }
|
||||
// }
|
||||
|
||||
const data = {
|
||||
brandRecommendedShowCategoryInfo,
|
||||
brandRecommendedShowInfo: filteredBrandRecommendedShowInfo,
|
||||
};
|
||||
// const data = {
|
||||
// brandRecommendedShowCategoryInfo,
|
||||
// brandRecommendedShowInfo: filteredBrandRecommendedShowInfo,
|
||||
// };
|
||||
|
||||
// dispatch({
|
||||
// type: types.GET_BRAND_RECOMMENDED_SHOW_INFO,
|
||||
// payload: {
|
||||
// data,
|
||||
// },
|
||||
// });
|
||||
|
||||
dispatch({
|
||||
type: types.GET_BRAND_RECOMMENDED_SHOW_INFO,
|
||||
payload: {
|
||||
data,
|
||||
data: response.data.data,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -39,7 +39,8 @@ export default memo(function LiveChannelsHorizontalContents({
|
||||
const {
|
||||
brandProductInfo,
|
||||
chanId,
|
||||
hstNm,
|
||||
// hstNm,
|
||||
lgCatNm,
|
||||
logoImgPath,
|
||||
patnrId,
|
||||
showId,
|
||||
@@ -133,7 +134,7 @@ export default memo(function LiveChannelsHorizontalContents({
|
||||
data-wheel-point={contentsIndex > 0}
|
||||
>
|
||||
<TItemCard
|
||||
catNm={hstNm} // pyh Todo, no catNm exists
|
||||
catNm={lgCatNm}
|
||||
data-video-card={"live-channels-horizontal-video-card-" + contentsIndex}
|
||||
imageAlt={showNm}
|
||||
imageSource={thumbnailImgPath}
|
||||
|
||||
Reference in New Issue
Block a user