Fix unshelf button not working

This commit is contained in:
adityachandelgit
2025-04-13 16:55:07 -06:00
committed by Aditya Chandel
parent 8fcc65f777
commit 13847f3bc9
@@ -144,8 +144,10 @@ export class BookBrowserComponent implements OnInit, AfterViewInit {
return; return;
} }
if (this.isLibrary(entity)) { if (this.isLibrary(entity)) {
this.entity = entity;
this.entityOptions = this.libraryShelfMenuService.initializeLibraryMenuItems(entity); this.entityOptions = this.libraryShelfMenuService.initializeLibraryMenuItems(entity);
} else { } else {
this.entity = entity;
this.entityOptions = this.libraryShelfMenuService.initializeShelfMenuItems(entity); this.entityOptions = this.libraryShelfMenuService.initializeShelfMenuItems(entity);
} }
}); });