We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents be454b2 + 3b70637 commit f7deb37Copy full SHA for f7deb37
src/routes/_app/$userId/albums.tsx
@@ -17,7 +17,12 @@ import type { ProfilePostGridItem } from '@/features/profile-posts/ui/ProfilePos
17
18
export const Route = createFileRoute('/_app/$userId/albums')({
19
validateSearch: z.object({
20
- albumId: z.coerce.number().int().positive().optional().catch(undefined),
+ albumId: z.coerce
21
+ .number()
22
+ .int()
23
+ .refine((n) => n === -1 || n > 0)
24
+ .optional()
25
+ .catch(undefined),
26
}),
27
component: RouteComponent,
28
})
0 commit comments