Skip to content

Commit

Permalink
chore: update survey edit form
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Oct 10, 2024
1 parent f00163b commit a218c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/components/survey/SurveyEditForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit a218c22

Please sign in to comment.