Add key prop to asciinema

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
Tilman Vatteroth 2020-07-20 21:52:10 +02:00 committed by mrdrogdrog
parent 29f76fec67
commit 742c6c1efb

View file

@ -14,7 +14,7 @@ export class AsciinemaReplacer implements ComponentReplacer {
const count = (this.counterMap.get(asciinemaId) || 0) + 1 const count = (this.counterMap.get(asciinemaId) || 0) + 1
this.counterMap.set(asciinemaId, count) this.counterMap.set(asciinemaId, count)
return ( return (
<AsciinemaFrame id={asciinemaId}/> <AsciinemaFrame key={`asciinema_${asciinemaId}_${count}`} id={asciinemaId}/>
) )
} }
} }