mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 00:43:54 +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 (
|
||||
<div className={style.markers}>
|
||||
{elements.map((tag) => {
|
||||
return <span key={tag}>{tag}</span>;
|
||||
{elements.map((tag, index) => {
|
||||
return <span key={`${index}-${tag}`}>{tag}</span>;
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user