fix: short text booking questions does not save we we click add (#17778)
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user