diff --git a/client/components/app/BookShelfCategorized.vue b/client/components/app/BookShelfCategorized.vue index d7d850d5..a977dd21 100644 --- a/client/components/app/BookShelfCategorized.vue +++ b/client/components/app/BookShelfCategorized.vue @@ -347,6 +347,13 @@ export default { libraryItemsAdded(libraryItems) { console.log('libraryItems added', libraryItems) + // First items added to library + const isThisLibrary = libraryItems.some((li) => li.libraryId === this.currentLibraryId) + if (!this.shelves.length && !this.search && isThisLibrary) { + this.fetchCategories() + return + } + const recentlyAddedShelf = this.shelves.find((shelf) => shelf.id === 'recently-added') if (!recentlyAddedShelf) return