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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,7 @@ const templateContent = `
</div> </div>
</div> </div>
<div className="highlight"> <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>
</div> </div>
); );