fix: short text booking questions does not save we we click add (#17778)

This commit is contained in:
Anik Dhabal Babu
2024-11-21 22:46:44 +00:00
committed by GitHub
parent b0bf87f3ed
commit 7ab8fdbcb4
@@ -459,7 +459,10 @@ function FieldEditDialog({
}) {
const { t } = useLocale();
const fieldForm = useForm<RhfFormField>({
defaultValues: dialog.data || {},
defaultValues: {
type: "text",
...dialog.data,
},
resolver: zodResolver(fieldSchema),
});
const formFieldType = fieldForm.getValues("type");