Skip to content

Commit fef779d

Browse files
committed
Fix missing latex key
1 parent 2967116 commit fef779d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/app.jsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,13 +2022,16 @@ class App extends Component {
20222022
}
20232023
)
20242024
retarray.push(
2025-
<span dangerouslySetInnerHTML={{ __html: html }}></span>
2025+
<span
2026+
key={'latex-' + retarray.length}
2027+
dangerouslySetInnerHTML={{ __html: html }}
2028+
></span>
20262029
)
20272030
secstart = curpos + 1
20282031
seclatex = false
20292032
} else {
20302033
retarray.push(
2031-
<React.Fragment>
2034+
<React.Fragment key={'latex-' + retarray.length}>
20322035
{string.substring(secstart, curpos - 1)}{' '}
20332036
</React.Fragment>
20342037
)
@@ -2039,7 +2042,7 @@ class App extends Component {
20392042
}
20402043

20412044
retarray.push(
2042-
<React.Fragment>
2045+
<React.Fragment key={'latex-' + retarray.length}>
20432046
{string.substring(secstart, string.length)}{' '}
20442047
</React.Fragment>
20452048
)

0 commit comments

Comments
 (0)