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.

Add the multiple selections setting to the multiple choice lead form field

Rafif06dc6f3b5fb
diff --git a/apps/web/lib/zod/schemas/submitted-lead-form.ts b/apps/web/lib/zod/schemas/submitted-lead-form.ts
index 9b1133f79e..d01c7e627d 100644
--- a/apps/web/lib/zod/schemas/submitted-lead-form.ts
+++ b/apps/web/lib/zod/schemas/submitted-lead-form.ts
@@ -79,6 +79,8 @@ export const dateFieldSchema = fieldCommonSchema.extend({
export const multiSelectFieldSchema = fieldCommonSchema.extend({
type: z.literal("multiSelect"),
options: selectOptionsSchema,
+ // Older fields have no value and allow multiple selections
+ multiple: z.boolean().optional(),
});
// Number