Fix quick bar dark mode contrast, filter returning all items, no primary text (#7430)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Donnie
2020-10-23 00:06:36 +02:00
committed by GitHub
co-authored by Bram Kragten
parent edc2a03d1c
commit a78c00fb41
3 changed files with 12 additions and 14 deletions
@@ -59,7 +59,7 @@ export const fuzzyFilterSort: FuzzyFilterSort = (filter, items) => {
: fuzzySequentialMatch(filter, item.text);
return item;
})
.filter((item) => item.score === undefined || item.score > 0)
.filter((item) => item.score !== undefined && item.score > 0)
.sort(({ score: scoreA = 0 }, { score: scoreB = 0 }) =>
scoreA > scoreB ? -1 : scoreA < scoreB ? 1 : 0
);