diff --git a/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.html b/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.html index efc786d76..991502a04 100644 --- a/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.html +++ b/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.html @@ -242,6 +242,7 @@ @if (currentViewMode === 'table' && books.length > 0) { (); protected urlHelper = inject(UrlHelperService); private bookService = inject(BookService); @@ -89,6 +90,8 @@ export class BookTableComponent implements OnInit, OnDestroy, OnChanges { this.metadataCenterViewMode = userState?.user?.userSettings.metadataCenterViewMode ?? 'route'; }); + this.selectedBookIds = this.preselectedBookIds; + this.selectedBooks = this.bookService.getBooksByIdsFromState([...this.selectedBookIds]); this.setScrollHeight(); window.addEventListener('resize', this.setScrollHeight.bind(this)); }