From ccb31b46372e3a6b8ada6ee7fd363db9503a8c58 Mon Sep 17 00:00:00 2001 From: grafixeyehero Date: Wed, 25 Oct 2023 19:26:44 +0300 Subject: [PATCH] apply suggestion --- src/apps/experimental/components/library/SortButton.tsx | 4 +--- src/utils/items.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) 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; }