[PlayerPanel] LiveChannelList showId 없을시 예외처리
This commit is contained in:
@@ -7,6 +7,7 @@ import Spotlight from "@enact/spotlight";
|
|||||||
import { updatePanel } from "../../../../actions/panelActions";
|
import { updatePanel } from "../../../../actions/panelActions";
|
||||||
import TVirtualGridList from "../../../../components/TVirtualGridList/TVirtualGridList";
|
import TVirtualGridList from "../../../../components/TVirtualGridList/TVirtualGridList";
|
||||||
import { LOG_MENU, panel_names } from "../../../../utils/Config";
|
import { LOG_MENU, panel_names } from "../../../../utils/Config";
|
||||||
|
import { $L } from "../../../../utils/helperMethods";
|
||||||
import ListEmptyContents from "../../../ImagePanel/ImageSideContents/ListEmptyContents/ListEmptyContents";
|
import ListEmptyContents from "../../../ImagePanel/ImageSideContents/ListEmptyContents/ListEmptyContents";
|
||||||
import PlayerItemCard, { TYPES } from "../../PlayerItemCard/PlayerItemCard";
|
import PlayerItemCard, { TYPES } from "../../PlayerItemCard/PlayerItemCard";
|
||||||
import css from "./LiveChannelContents.module.less";
|
import css from "./LiveChannelContents.module.less";
|
||||||
@@ -47,6 +48,8 @@ export default function LiveChannelContents({
|
|||||||
} = liveInfos[index];
|
} = liveInfos[index];
|
||||||
|
|
||||||
const handleItemClick = () => {
|
const handleItemClick = () => {
|
||||||
|
if (!showId) return;
|
||||||
|
|
||||||
setSelectedIndex(index);
|
setSelectedIndex(index);
|
||||||
dispatch(
|
dispatch(
|
||||||
updatePanel({
|
updatePanel({
|
||||||
@@ -64,7 +67,7 @@ export default function LiveChannelContents({
|
|||||||
logo={patncLogoPath}
|
logo={patncLogoPath}
|
||||||
imageSource={thumbnailUrl ? thumbnailUrl : dfltThumbnailImgPath}
|
imageSource={thumbnailUrl ? thumbnailUrl : dfltThumbnailImgPath}
|
||||||
videoVerticalVisible={videoVerticalVisible}
|
videoVerticalVisible={videoVerticalVisible}
|
||||||
productName={showNm}
|
productName={showNm ? showNm : $L("No Livestream scheduled yet")}
|
||||||
patnerName={patncNm}
|
patnerName={patncNm}
|
||||||
onClick={handleItemClick}
|
onClick={handleItemClick}
|
||||||
onFocus={handleFocus()}
|
onFocus={handleFocus()}
|
||||||
|
|||||||
Reference in New Issue
Block a user