Skip to content

Commit

Permalink
fix: disable fuzzy search on empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
FrantisekMichalSebestyen authored and eronisko committed Nov 2, 2023
1 parent b8aeab4 commit 1ac3f98
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export default {
)
.map((selected) => ({ value: selected, count: 0, checked: true })),
]
return matchSorter(optionsWithSelected, this.search, {
return this.search ? matchSorter(optionsWithSelected, this.search, {
keys: [(option) => formatAuthorName(option.value)],
})
}) : optionsWithSelected
},
},
render() {
Expand Down

0 comments on commit 1ac3f98

Please sign in to comment.