fix: Jellyseerr dont compare against tv original names during sorting

This commit is contained in:
herrrta
2025-03-05 01:30:42 -05:00
parent 27cd73efab
commit ba9178a0f6

View File

@@ -137,7 +137,7 @@ export const JellyserrIndexPage: React.FC<Props> = ({
() =>
orderBy(
jellyseerrResults?.filter((r) => r.mediaType === MediaType.TV) as TvResult[],
sortingType || [t => t.originalName.toLowerCase() == searchQuery.toLowerCase()],
sortingType || [t => t.name.toLowerCase() == searchQuery.toLowerCase()],
order || "desc"
),
[jellyseerrResults, sortingType, order]