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.

Allow a submitted lead form with only the required fields

Rafi2ff83cec9219
diff --git a/apps/web/lib/zod/schemas/submitted-lead-form.ts b/apps/web/lib/zod/schemas/submitted-lead-form.ts
index 00db9f3ed1..ad5351955c 100644
--- a/apps/web/lib/zod/schemas/submitted-lead-form.ts
+++ b/apps/web/lib/zod/schemas/submitted-lead-form.ts
@@ -90,7 +90,6 @@ export const formFieldSchema = z.discriminatedUnion("type", [
export const formFieldsSchema = z
.array(formFieldSchema)
- .min(1)
.superRefine((fields, ctx) => {
const keys = new Set<string>();
const positions = new Set<number>();