Merge pull request #1418 from eikek/fix/select-empty-category

Filter out empty tag categories in search menu
This commit is contained in:
mergify[bot]
2022-02-24 20:58:04 +00:00
committed by GitHub

View File

@ -106,7 +106,7 @@ initAvailable allTags allCats model =
cats = cats =
List.sortBy (.count >> negate) allCats List.sortBy (.count >> negate) allCats
|> List.map (.name >> Maybe.withDefault "") |> List.filterMap .name
in in
{ model { model
| availableTags = tags | availableTags = tags