diff --git a/frontend/src/lib/components/layout/library-switcher.svelte b/frontend/src/lib/components/layout/library-switcher.svelte index d202494..db5e846 100644 --- a/frontend/src/lib/components/layout/library-switcher.svelte +++ b/frontend/src/lib/components/layout/library-switcher.svelte @@ -35,6 +35,9 @@ {libraryState.activeLibrary!.name} + + {libraryState.activeLibrary!.total ?? 0} books + diff --git a/frontend/src/lib/components/view/batch-operations-toolbar.svelte b/frontend/src/lib/components/view/batch-operations-toolbar.svelte index db93256..76e4366 100644 --- a/frontend/src/lib/components/view/batch-operations-toolbar.svelte +++ b/frontend/src/lib/components/view/batch-operations-toolbar.svelte @@ -59,8 +59,7 @@ Shelves - - {#each bookshelfState.getBookshelves(libraryState.activeLibrary!.id) as shelf} + {#each bookshelfState.getBookshelves(libraryState.activeLibrary!.id) ?? [] as shelf (shelf.id)} book.lists.findIndex((sh) => sh.id === shelf.id) !== -1