Skip to content

Commit

Permalink
fix(hits): Fix warning about unique key in iterator
Browse files Browse the repository at this point in the history
I forgot to move the `key` key to the parent element
  • Loading branch information
pixelastic committed Oct 21, 2015
1 parent b7f7313 commit 0c9468c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/Hits.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ class Hits extends React.Component {
renderWithResults() {
var renderedHits = map(this.props.results.hits, hit => {
return (
<div className={this.props.cssClasses.item}>
<div className={this.props.cssClasses.item} key={hit.objectID}>
<Template
data={hit}
key={hit.objectID}
templateKey="item"
{...this.props.templateProps}
/>
Expand Down

0 comments on commit 0c9468c

Please sign in to comment.