Skip to content

Commit

Permalink
Fix text filtering of matches
Browse files Browse the repository at this point in the history
  • Loading branch information
silkservice committed Feb 18, 2021
1 parent d9bdb53 commit f04728b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function TargetList({targets, onChange}: IProps) {
const words = extractSearchWords(inputQuery, true)
const filtered = targets.filter(o => {
const searchIn = `${o?.uri || ""} ${o?.label || ""} ${o?.description || ""}`.toLowerCase()
matchesAllWords(searchIn, words)
return matchesAllWords(searchIn, words)
}
);
const existingUris = new Set(filtered.map(f => f.uri))
Expand Down

0 comments on commit f04728b

Please sign in to comment.