fix: EIC/GB 오류해결 임시적용

This commit is contained in:
djaco
2025-07-23 15:46:13 +09:00
parent 781c541dd9
commit f4c99708a5
8 changed files with 92 additions and 62 deletions

View File

@@ -410,7 +410,7 @@ export default function HomeBanner({
spotlightId={"banner" + index}
handleShelfFocus={_handleShelfFocus}
handleItemFocus={_handleItemFocus}
randomNumber={data.randomIndex}
randomNumber={data?.randomIndex}
onFocus={handleSecondBannerFocus}
onBlur={handleSecondBannerBlur}
/>
@@ -437,7 +437,7 @@ export default function HomeBanner({
spotlightId={"banner" + index}
handleShelfFocus={_handleShelfFocus}
handleItemFocus={_handleItemFocus}
randomNumber={data.randomIndex}
randomNumber={data?.randomIndex}
/>
) : (
<SpottableComponent spotlightId={"banner" + index}>
@@ -471,14 +471,14 @@ export default function HomeBanner({
if (selectTemplate === "DSP00201" && index === 1) {
return (
<div className={!isHorizontal ? css.imgBox : undefined}>
<RandomUnitNew
<RandomUnit
bannerData={data}
isHorizontal={isHorizontal}
key={"banner" + index}
spotlightId={"banner" + index}
handleShelfFocus={_handleShelfFocus}
handleItemFocus={_handleItemFocus}
randomNumber={data.randomIndex}
randomNumber={data?.randomIndex}
/>
</div>
);