Fix surface color not restoring correctly from saved settings

This commit is contained in:
aditya.chandel
2025-06-13 00:17:48 -06:00
parent 2fe7b0b5e3
commit 1f3e77f775
2 changed files with 26 additions and 29 deletions
@@ -153,11 +153,11 @@ export class BookFilterComponent implements OnInit, OnDestroy {
bookService = inject(BookService);
userService = inject(UserService);
sidebarFilterSortingManager = inject(FilterSortPreferenceService);
filterSortPreferenceService = inject(FilterSortPreferenceService);
ngOnInit(): void {
combineLatest([
this.sidebarFilterSortingManager.sortMode$.pipe(distinctUntilChanged()),
this.filterSortPreferenceService.sortMode$.pipe(distinctUntilChanged()),
this.entity$ ?? of(null),
this.entityType$ ?? of(EntityType.ALL_BOOKS)
])