chore: update survey edit form
This commit is contained in:
parent
8a6a75f3f5
commit
cbd6821def
@ -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<typeof addFormSchema>;
|
||||
@ -300,7 +300,7 @@ export const SurveyEditForm: React.FC<SurveyEditFormProps> = React.memo(
|
||||
name="webhookUrl"
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>{t('Webhook Url')}</FormLabel>
|
||||
<FormLabel optional={true}>{t('Webhook Url')}</FormLabel>
|
||||
<FormControl className="w-full">
|
||||
<Input {...field} />
|
||||
</FormControl>
|
||||
|
Loading…
Reference in New Issue
Block a user