From feafc5cae75e6abfc2b84be7047db3f5279d9483 Mon Sep 17 00:00:00 2001 From: "aditya.chandel" <> Date: Sat, 8 Feb 2025 06:59:05 -0700 Subject: [PATCH] Set EntityType --- .../app/book/components/book-browser/book-browser.component.ts | 2 ++ 1 file changed, 2 insertions(+) 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};