Skip to content

Commit

Permalink
Merge pull request #133 from Suwayomi/main
Browse files Browse the repository at this point in the history
in library only show Categories with manga in them
  • Loading branch information
Robonau authored Jan 17, 2024
2 parents 4bbc197 + 86fdcde commit de072c1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/routes/(app)/(library)/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@
});
}
$: orderedCategories = [...($categories.data?.categories?.nodes ?? [])].toSorted((a, b) => {
return a.order > b.order ? 1 : -1;
});
$: orderedCategories = [...($categories.data?.categories?.nodes ?? [])]
.toSorted((a, b) => {
return a.order > b.order ? 1 : -1;
})
.filter((e) => e.mangas.totalCount);
function LongHandler() {
$selectMode = true;
Expand Down

0 comments on commit de072c1

Please sign in to comment.