[PlayerPanel] LiveChannelList showId 없을시 예외처리

This commit is contained in:
고동영
2024-06-18 15:25:30 +09:00
parent 9cdc44a3a0
commit 1d2239ef7b

View File

@@ -7,6 +7,7 @@ import Spotlight from "@enact/spotlight";
import { updatePanel } from "../../../../actions/panelActions";
import TVirtualGridList from "../../../../components/TVirtualGridList/TVirtualGridList";
import { LOG_MENU, panel_names } from "../../../../utils/Config";
import { $L } from "../../../../utils/helperMethods";
import ListEmptyContents from "../../../ImagePanel/ImageSideContents/ListEmptyContents/ListEmptyContents";
import PlayerItemCard, { TYPES } from "../../PlayerItemCard/PlayerItemCard";
import css from "./LiveChannelContents.module.less";
@@ -47,6 +48,8 @@ export default function LiveChannelContents({
} = liveInfos[index];
const handleItemClick = () => {
if (!showId) return;
setSelectedIndex(index);
dispatch(
updatePanel({
@@ -64,7 +67,7 @@ export default function LiveChannelContents({
logo={patncLogoPath}
imageSource={thumbnailUrl ? thumbnailUrl : dfltThumbnailImgPath}
videoVerticalVisible={videoVerticalVisible}
productName={showNm}
productName={showNm ? showNm : $L("No Livestream scheduled yet")}
patnerName={patncNm}
onClick={handleItemClick}
onFocus={handleFocus()}