diff --git a/src/realm-settings/ExecutorForm.tsx b/src/realm-settings/ExecutorForm.tsx index 1a17bc7159..2c2097bca6 100644 --- a/src/realm-settings/ExecutorForm.tsx +++ b/src/realm-settings/ExecutorForm.tsx @@ -56,7 +56,7 @@ export default function ExecutorForm() { ClientProfileRepresentation[] >([]); const [profiles, setProfiles] = useState([]); - const form = useForm({ defaultValues, shouldUnregister: false }); + const form = useForm({ defaultValues }); const { control, reset, handleSubmit } = form; const editMode = !!executorName; @@ -188,13 +188,13 @@ export default function ExecutorForm() { name="executor" defaultValue="" control={control} - render={({ onChange, value }) => ( + render={({ value }) => (