fix: Recently Added isn't updating correctly. (#686)

This commit is contained in:
Sim
2025-06-02 04:21:50 -07:00
committed by GitHub
parent 6703299da9
commit 1b812ebed5
4 changed files with 53 additions and 18 deletions

View File

@@ -367,7 +367,15 @@ const Page = () => {
className='mr-1'
id={libraryId}
queryKey='sortBy'
queryFn={async () => sortOptions.map((s) => s.key)}
queryFn={async () =>
sortOptions
.filter(
(s) =>
library?.CollectionType !== "movies" ||
s.key !== SortByOption.DateLastContentAdded,
)
.map((s) => s.key)
}
set={setSortBy}
values={sortBy}
title={t("library.filters.sort_by")}