apply suggestion
This commit is contained in:
@@ -21,9 +21,7 @@ type SortOption = {
|
||||
value: ItemSortBy;
|
||||
};
|
||||
|
||||
type SortOptionsMapping = {
|
||||
[key: string]: SortOption[];
|
||||
};
|
||||
type SortOptionsMapping = Record<string, SortOption[]>;
|
||||
|
||||
const movieOrFavoriteOptions = [
|
||||
{ label: 'Name', value: ItemSortBy.SortName },
|
||||
|
||||
+1
-1
@@ -145,7 +145,7 @@ export const getSettingsKey = (viewType: LibraryTab, parentId: ParentId) => {
|
||||
};
|
||||
|
||||
export const getDefaultSortBy = (viewType: LibraryTab) => {
|
||||
if (viewType === LibraryTab.Episodes ) {
|
||||
if (viewType === LibraryTab.Episodes) {
|
||||
return ItemSortBy.SeriesSortName;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user