[TrendingNowPanel] topButton focus 예외처리

This commit is contained in:
jiwon93.son
2024-07-17 18:13:13 +09:00
parent 7977859519
commit b41bd5f123

View File

@@ -162,7 +162,13 @@ const TrendingNowPanel = ({ panelInfo, spotlightId }) => {
cbChangePageRef.current(0, true);
}
if (!targetId) {
Spotlight.focus("popular_video");
if (topInfos && topInfos.length > 0) Spotlight.focus("popular_video");
else {
if (bestSellerDatas && bestSellerDatas.length > 0)
Spotlight.focus(
"bs-spotlightId-" + removeDotAndColon(bestSellerDatas[0]?.prdtId)
);
}
return;
}
timerRef.current = setTimeout(() => {