mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-10-15 19:45:42 -04:00
fix(upcoming): omit direction in the default view so the loader prefetch key matches
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -66,7 +66,7 @@ export default function UpcomingScreen() {
|
||||
days: 90,
|
||||
limit: 20,
|
||||
cursor: pageParam,
|
||||
direction: view,
|
||||
direction: isRecent ? "recent" : undefined,
|
||||
mediaType: !isRecent && mediaType !== "all" ? mediaType : undefined,
|
||||
statusFilter: !isRecent && statusFilter !== "all" ? [statusFilter] : undefined,
|
||||
}),
|
||||
|
||||
@@ -78,7 +78,7 @@ function UpcomingPage() {
|
||||
days: 90,
|
||||
limit: 20,
|
||||
cursor: pageParam,
|
||||
direction: view,
|
||||
direction: isRecent ? "recent" : undefined,
|
||||
mediaType: !isRecent && typeFilter !== "all" ? (typeFilter as "movie" | "tv") : undefined,
|
||||
statusFilter:
|
||||
!isRecent && statusFilter !== "all"
|
||||
|
||||
Reference in new issue
Block a user