diff --git a/apps/web/src/components/templates/TemplateFormProvider.tsx b/apps/web/src/components/templates/TemplateFormProvider.tsx index f69a90f0cd9..860f8569b2a 100644 --- a/apps/web/src/components/templates/TemplateFormProvider.tsx +++ b/apps/web/src/components/templates/TemplateFormProvider.tsx @@ -48,7 +48,7 @@ const schema = z content: z.any(), subject: z.any(), title: z.any(), - layoutId: z.any(), + layoutId: z.any().optional(), }) .passthrough() .superRefine((template: any, ctx) => { @@ -79,13 +79,6 @@ const schema = z path: ['subject'], }); } - if (!template.layoutId) { - ctx.addIssue({ - code: z.ZodIssueCode.custom, - message: 'Required - Layout', - path: ['layoutId'], - }); - } } if (template.type === ChannelTypeEnum.PUSH && !template.title) {