[포유]스팟 아이디 변경
- 목업 데이터 내에 스팟 아이디가 겹쳐 스팟이동시 이상한부분 수정
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user