From cbd6821def5e2426af1636df9a5a9fa117793ea6 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Fri, 11 Oct 2024 00:58:10 +0800 Subject: [PATCH] chore: update survey edit form --- src/client/components/survey/SurveyEditForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/components/survey/SurveyEditForm.tsx b/src/client/components/survey/SurveyEditForm.tsx index 14dc83e..e41b041 100644 --- a/src/client/components/survey/SurveyEditForm.tsx +++ b/src/client/components/survey/SurveyEditForm.tsx @@ -44,7 +44,7 @@ const addFormSchema = z.object({ }), feedChannelIds: z.array(z.string()), feedTemplate: z.string(), - webhookUrl: z.string().url(), + webhookUrl: z.string().url().or(z.literal('')), }); export type SurveyEditFormValues = z.infer; @@ -300,7 +300,7 @@ export const SurveyEditForm: React.FC = React.memo( name="webhookUrl" render={({ field }) => ( - {t('Webhook Url')} + {t('Webhook Url')}