mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-15 20:16:39 +02:00
Access id instead of item.id since Fuse has flattened its object structure
This commit is contained in:
parent
4c080cdc06
commit
509eed587c
|
@ -71,7 +71,7 @@ const choices = (state = [], action) => {
|
|||
// Set active state based on whether choice is
|
||||
// within filtered results
|
||||
choice.active = filteredResults.some((result) => {
|
||||
if (result.item.id === choice.id) {
|
||||
if (result.id === choice.id) {
|
||||
choice.score = result.score;
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"classnames": "^2.2.5",
|
||||
"fuse.js": "^2.2.2",
|
||||
"fuse.js": "^3.1.0",
|
||||
"redux": "^3.3.1"
|
||||
},
|
||||
"npmName": "choices.js",
|
||||
|
|
Loading…
Reference in a new issue