diff --git a/booklore-ui/src/app/book/components/book-browser/book-browser.component.ts b/booklore-ui/src/app/book/components/book-browser/book-browser.component.ts index 926fd8761..f78e081dd 100644 --- a/booklore-ui/src/app/book/components/book-browser/book-browser.component.ts +++ b/booklore-ui/src/app/book/components/book-browser/book-browser.component.ts @@ -161,8 +161,10 @@ export class BookBrowserComponent implements OnInit, AfterViewInit { const libraryId = Number(params.get('libraryId') || NaN); const shelfId = Number(params.get('shelfId') || NaN); if (!isNaN(libraryId)) { + this.entityType = EntityType.LIBRARY; return {entityId: libraryId, entityType: EntityType.LIBRARY}; } else if (!isNaN(shelfId)) { + this.entityType = EntityType.SHELF; return {entityId: shelfId, entityType: EntityType.SHELF}; } else { return {entityId: NaN, entityType: EntityType.ALL_BOOKS};