1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

apply suggestion

This commit is contained in:
grafixeyehero 2023-10-25 19:26:44 +03:00
parent f6e9b1c997
commit ccb31b4637
2 changed files with 2 additions and 4 deletions

View file

@ -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 },

View file

@ -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;
}