Commit 3877adc7 authored by Élodie Thiéblin's avatar Élodie Thiéblin
Browse files

[bienCulturelClass] Add key on span

parent 0ec80b51bf0b
......@@ -142,7 +142,11 @@ const BienCulturelClass: React.FC<BienCulturelClassProps> = (props) => {
<div>
<h3>Filtrer par type alternatif : </h3>
{types.map((type) => (
<span onClick={() => toggleSelectedType(type)} style={{ cursor: 'pointer' }}>
<span
key={type + 'span'}
onClick={() => toggleSelectedType(type)}
style={{ cursor: 'pointer' }}
>
<URIBadge
key={type}
uri={type}
......@@ -159,7 +163,11 @@ const BienCulturelClass: React.FC<BienCulturelClassProps> = (props) => {
<div>
<h3>Filtrer par source : </h3>
{allGraphSource.map((currentGraph) => (
<span onClick={() => toggleSelectedGraph(currentGraph)} style={{ cursor: 'pointer' }}>
<span
key={currentGraph + 'span'}
onClick={() => toggleSelectedGraph(currentGraph)}
style={{ cursor: 'pointer' }}
>
<URIBadge key={currentGraph} uri={currentGraph} selected={selectedGraph === currentGraph} />
</span>
))}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment