Skip to content

Commit

Permalink
fix(Search): use result.id for SearchResult key (#3848)
Browse files Browse the repository at this point in the history
* Fixed key value for SearchResult Component

* Remove result.key
  • Loading branch information
unbug authored and levithomason committed Dec 8, 2019
1 parent 9f797db commit 8b46b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/Search/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ export default class Search extends Component {

return (
<SearchResult
key={childKey || result.title}
key={childKey || result.id || result.title}
active={selectedIndex === offsetIndex}
onClick={this.handleItemClick}
onMouseDown={this.handleItemMouseDown}
Expand Down

0 comments on commit 8b46b2d

Please sign in to comment.