1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-05-25 01:29:04 +01:00

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-22 15:06:36 -07:00
committed by GitHub
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
);