Skip to content

Commit 8b46b2d

Browse files
unbuglevithomason
authored andcommitted
fix(Search): use result.id for SearchResult key (#3848)
* Fixed key value for SearchResult Component * Remove result.key
1 parent 9f797db commit 8b46b2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/Search/Search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ export default class Search extends Component {
559559

560560
return (
561561
<SearchResult
562-
key={childKey || result.title}
562+
key={childKey || result.id || result.title}
563563
active={selectedIndex === offsetIndex}
564564
onClick={this.handleItemClick}
565565
onMouseDown={this.handleItemMouseDown}

0 commit comments

Comments
 (0)