Skip to content

Commit

Permalink
in library only show Categories with manga in them
Browse files Browse the repository at this point in the history
  • Loading branch information
Robonau committed Jan 17, 2024
1 parent 0ce8b2a commit 86fdcde
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 86fdcde

Please sign in to comment.