mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 15:09:10 +00:00
refactor: prevent index collision
This commit is contained in:
committed by
Carlos Valente
parent
ee1b5b7fdd
commit
abcee741e2
@@ -14,8 +14,8 @@ export default function TimelineMarkers(props: TimelineMarkersProps) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={style.markers}>
|
<div className={style.markers}>
|
||||||
{elements.map((tag) => {
|
{elements.map((tag, index) => {
|
||||||
return <span key={tag}>{tag}</span>;
|
return <span key={`${index}-${tag}`}>{tag}</span>;
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user