mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Add unique key to highlight codeblock line numbers (#254)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
8133d565cf
commit
a03e341f22
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ export const HighlightedCode: React.FC<HighlightedCodeProps> = ({ code, language
|
|||
{
|
||||
highlightedCode
|
||||
.map((line, index) => {
|
||||
return <span data-line-number={index + 1}/>
|
||||
return <span key={index} data-line-number={index + 1}/>
|
||||
})
|
||||
}
|
||||
</span>
|
||||
|
|
Loading…
Reference in a new issue