fix race condition in annotate view

This commit is contained in:
Eduard Heimbuch
2020-06-17 11:44:21 +02:00
parent 9353972da2
commit 37bad5fd95
4 changed files with 27 additions and 29 deletions

View File

@@ -144,7 +144,7 @@ const Annotate: FC<Props> = ({ source, repository, baseDate }) => {
{popover}
<ReactSyntaxHighlighter
showLineNumbers={false}
language={source.language}
language={source.language ? source.language : "text"}
style={arduinoLight}
renderer={defaultRenderer}
>