Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Handle `folderId='unsorted'`

Steven Tey9ca3c2449906
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index 38179d7e2d..8ce81d2210 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -120,6 +120,7 @@ const LinksQuerySchema = z.object({
folderId: z
.string()
.optional()
+ .transform((v) => (v === "unsorted" ? null : v))
.describe("The folder ID to filter the links by."),
search: z
.string()