File tree Expand file tree Collapse file tree
frontend/src/app/features/settings/view-preferences-parent/view-preferences Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,13 +117,13 @@ export class ViewPreferencesComponent implements OnInit {
117117 const prefs = user . userSettings ?. entityViewPreferences ;
118118 const global = prefs ?. global ;
119119 this . selectedView = global ?. view ?? 'GRID' ;
120- this . overlayBookType = global . overlayBookType ?? true ;
120+ this . overlayBookType = global ? .overlayBookType ?? true ;
121121 this . autoSaveMetadata = user . userSettings ?. autoSaveMetadata ?? false ;
122122
123123 const storedTerms = bookSortTermsFromCriteria ( entityViewSortCriteria ( global ) ) ;
124124 this . globalSortTerms = storedTerms . length > 0 ? storedTerms : DEFAULT_BOOK_SORT_TERMS ;
125125
126- this . overrides = ( prefs . overrides ?? [ ] ) . map ( override => ( {
126+ this . overrides = ( prefs ? .overrides ?? [ ] ) . map ( override => ( {
127127 entityType : override . entityType ,
128128 library : override . entityId ,
129129 sortTerms : bookSortTermsFromCriteria ( entityViewSortCriteria ( override . preferences ) ) ,
You can’t perform that action at this time.
0 commit comments