Fix a missing key.
This commit is contained in:
parent
0e02e09018
commit
5feac8e4d7
@ -24,7 +24,7 @@ function buildShadow(highlights: Highlight[], text: string): ReactNode[] {
|
||||
} else if (state == ShadowState.Highlight) {
|
||||
if (remaining_highlights.length > 0 && i == remaining_highlights[0].end) {
|
||||
// End the span
|
||||
output.push(<span className="highlighted">{buffer}</span>);
|
||||
output.push(<span key={i} className="highlighted">{buffer}</span>);
|
||||
buffer = chr;
|
||||
state = ShadowState.Text;
|
||||
remaining_highlights = remaining_highlights.slice(1);
|
||||
|
Loading…
Reference in New Issue
Block a user