diff --git a/src/apps/experimental/components/library/SortButton.tsx b/src/apps/experimental/components/library/SortButton.tsx index 14f166911a..04113f3f0a 100644 --- a/src/apps/experimental/components/library/SortButton.tsx +++ b/src/apps/experimental/components/library/SortButton.tsx @@ -21,9 +21,7 @@ type SortOption = { value: ItemSortBy; }; -type SortOptionsMapping = { - [key: string]: SortOption[]; -}; +type SortOptionsMapping = Record; const movieOrFavoriteOptions = [ { label: 'Name', value: ItemSortBy.SortName }, diff --git a/src/utils/items.ts b/src/utils/items.ts index 8510fabac6..3008ec5e65 100644 --- a/src/utils/items.ts +++ b/src/utils/items.ts @@ -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; }