diff --git a/src/client/components/feed/FeedChannelEditForm.tsx b/src/client/components/feed/FeedChannelEditForm.tsx index f13d7e8..12a2110 100644 --- a/src/client/components/feed/FeedChannelEditForm.tsx +++ b/src/client/components/feed/FeedChannelEditForm.tsx @@ -30,7 +30,7 @@ import dayjs from 'dayjs'; const addFormSchema = z.object({ name: z.string(), - webhookSignature: z.string().optional(), + webhookSignature: z.string().default(''), notificationIds: z.array(z.string()).default([]), notifyFrequency: z.enum(['none', 'event', 'day', 'week', 'month']), }); @@ -49,6 +49,7 @@ export const FeedChannelEditForm: React.FC = resolver: zodResolver(addFormSchema), defaultValues: props.defaultValues ?? { name: 'New Channel', + webhookSignature: '', notificationIds: [], notifyFrequency: 'none', },