mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
apply suggestion
This commit is contained in:
parent
f6e9b1c997
commit
ccb31b4637
2 changed files with 2 additions and 4 deletions
|
@ -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 },
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue