diff --git a/packages/code-du-travail-frontend/src/content/Components/ContentList.tsx b/packages/code-du-travail-frontend/src/content/Components/ContentList.tsx index c09e7d0c75..8a74438c9e 100644 --- a/packages/code-du-travail-frontend/src/content/Components/ContentList.tsx +++ b/packages/code-du-travail-frontend/src/content/Components/ContentList.tsx @@ -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 ( <> @@ -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} > diff --git a/packages/code-du-travail-frontend/src/information/Components/BlockList.tsx b/packages/code-du-travail-frontend/src/information/Components/BlockList.tsx index e8aa4fac58..96d7910b71 100644 --- a/packages/code-du-travail-frontend/src/information/Components/BlockList.tsx +++ b/packages/code-du-travail-frontend/src/information/Components/BlockList.tsx @@ -22,7 +22,7 @@ export const BlockList = ({ comp = ( <> {title && {title}} - + ); break;