From 59b874644fd3427bc86cd2a7e948054e827de080 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Fri, 1 Nov 2024 00:45:19 +0800 Subject: [PATCH] chore: fix ci problem --- src/client/components/feed/FeedChannelEditForm.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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', },