chore: fix ci problem

This commit is contained in:
moonrailgun 2024-11-01 00:45:19 +08:00
parent 266b08f2da
commit 59b874644f

View File

@ -30,7 +30,7 @@ import dayjs from 'dayjs';
const addFormSchema = z.object({ const addFormSchema = z.object({
name: z.string(), name: z.string(),
webhookSignature: z.string().optional(), webhookSignature: z.string().default(''),
notificationIds: z.array(z.string()).default([]), notificationIds: z.array(z.string()).default([]),
notifyFrequency: z.enum(['none', 'event', 'day', 'week', 'month']), notifyFrequency: z.enum(['none', 'event', 'day', 'week', 'month']),
}); });
@ -49,6 +49,7 @@ export const FeedChannelEditForm: React.FC<FeedChannelEditFormProps> =
resolver: zodResolver(addFormSchema), resolver: zodResolver(addFormSchema),
defaultValues: props.defaultValues ?? { defaultValues: props.defaultValues ?? {
name: 'New Channel', name: 'New Channel',
webhookSignature: '',
notificationIds: [], notificationIds: [],
notifyFrequency: 'none', notifyFrequency: 'none',
}, },