We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53da788 commit 699134cCopy full SHA for 699134c
packages/form-core/src/FormApi.ts
@@ -2558,8 +2558,7 @@ export class FormApi<
2558
resetField = <TField extends DeepKeys<TFormData>>(field: TField) => {
2559
this.baseStore.setState((prev) => {
2560
const fieldDefault =
2561
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
2562
- this.getFieldInfo(field)?.instance?.options.defaultValue
+ this.getFieldInfo(field).instance?.options.defaultValue
2563
const formDefault = getBy(this.options.defaultValues, field)
2564
const targetValue = fieldDefault ?? formDefault
2565
0 commit comments