From 4ee127b6cb040b73036f0cdbb115ae28220ed29d Mon Sep 17 00:00:00 2001 From: patrick Date: Tue, 11 Aug 2026 20:08:16 -0400 Subject: [PATCH] fix: remove duplicate separator in the shelves dropdown --- frontend/src/lib/components/layout/library-switcher.svelte | 3 +++ .../src/lib/components/view/batch-operations-toolbar.svelte | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) 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