add key to Highlight component (#686)

This commit is contained in:
Marc Brugger
2021-08-19 14:54:12 +02:00
committed by GitHub
parent aee782bfe8
commit b695b66e4d

View File

@@ -114,7 +114,7 @@ const templateContent = `
</div>
</div>
<div className="highlight">
<Highlight code={ this.props.data.code }/>
<Highlight key={ this.props.data.file + this.props.data.line } code={ this.props.data.code }/>
</div>
</div>
);