Skip to content

Commit f7deb37

Browse files
authored
Merge pull request #167 from wafflestudio/166-bug-deploy
앨범 스키마 버그 해결
2 parents be454b2 + 3b70637 commit f7deb37

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/routes/_app/$userId/albums.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ import type { ProfilePostGridItem } from '@/features/profile-posts/ui/ProfilePos
1717

1818
export const Route = createFileRoute('/_app/$userId/albums')({
1919
validateSearch: z.object({
20-
albumId: z.coerce.number().int().positive().optional().catch(undefined),
20+
albumId: z.coerce
21+
.number()
22+
.int()
23+
.refine((n) => n === -1 || n > 0)
24+
.optional()
25+
.catch(undefined),
2126
}),
2227
component: RouteComponent,
2328
})

0 commit comments

Comments
 (0)