Skip to content

Commit

Permalink
fix(warning): one more warning (#5548)
Browse files Browse the repository at this point in the history
  • Loading branch information
carolineBda authored Jan 11, 2024
1 parent f00ac4c commit e5da6eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from "react";
import { ListLink } from "../../search/SearchResults/Results";
import styled from "styled-components";

export const ContentList = ({ block, key }) => {
export const ContentList = ({ block, uniquKey }) => {
const { blockDisplayMode, contents } = block;
return (
<>
Expand All @@ -19,7 +19,7 @@ export const ContentList = ({ block, key }) => {
...item,
icon: icons[item?.icon],
}}
key={`${key}-${ContentIndex}`}
key={`${uniquKey}-${ContentIndex}`}
disableAnalytics
centerTitle={blockDisplayMode === BlockDisplayMode.square}
></ListLink>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const BlockList = ({
comp = (
<>
{title && <BlockContentTitle>{title}</BlockContentTitle>}
<ContentList block={block} key={index}></ContentList>
<ContentList block={block} uniquKey={index}></ContentList>
</>
);
break;
Expand Down

0 comments on commit e5da6eb

Please sign in to comment.