diff --git a/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.ts b/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.ts index 34481c8c0..628a26329 100644 --- a/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.ts +++ b/booklore-ui/src/app/features/book/components/book-browser/book-browser.component.ts @@ -327,7 +327,7 @@ export class BookBrowserComponent implements OnInit, AfterViewInit { this.entityViewPreferences = user.user?.userSettings?.entityViewPreferences; const globalPrefs = this.entityViewPreferences?.global; - const currentEntityTypeStr = this.entityType ? this.entityType.toString().toUpperCase() : undefined; + const currentEntityTypeStr = this.entityType ? this.entityType.toString().toUpperCase().replaceAll(' ', '_') : undefined; this.coverScalePreferenceService.initScaleValue(this.coverScalePreferenceService.scaleFactor); this.columnPreferenceService.initPreferences(user.user?.userSettings?.tableColumnPreference); this.visibleColumns = this.columnPreferenceService.visibleColumns;