[포유]스팟 아이디 변경

- 목업 데이터 내에 스팟 아이디가 겹쳐 스팟이동시 이상한부분 수정
This commit is contained in:
junghoon86.park
2025-10-21 12:28:41 +09:00
parent 94073538b2
commit cfe5991c4d

View File

@@ -82,7 +82,7 @@ const JustForYouTestPanel = ({ panelInfo, ...rest }) => {
}, [shelfInfos]);
const renderItem = useCallback(
(shelfId, productInfos) =>
(shelfId, shelfExpsOrd, productInfos) =>
({ index, ...rest }) => {
if (!productInfos || !productInfos[index]) {
return null;
@@ -130,7 +130,7 @@ const JustForYouTestPanel = ({ panelInfo, ...rest }) => {
productName={title}
productId={contentId}
onClick={handleItemClick}
spotlightId={`spotlightId-${shelfId}-${removeDotAndColon(contentId).replaceAll(" ", "")}`}
spotlightId={`spotlightId-${shelfId}-${shelfExpsOrd}-${removeDotAndColon(contentId).replaceAll(" ", "")}`}
{...rest}
/>
);
@@ -196,6 +196,7 @@ const JustForYouTestPanel = ({ panelInfo, ...rest }) => {
spacing={18}
renderItem={renderItem(
shelf.shelfId,
shelf.shelfExpsOrd,
shelf.productInfos
)}
direction="horizontal"