Skip to content

Commit 75dbab5

Browse files
ci: apply automated fixes and generate docs
1 parent 4567071 commit 75dbab5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/form-core/src/FormApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2556,8 +2556,8 @@ export class FormApi<
25562556
*/
25572557
resetField = <TField extends DeepKeys<TFormData>>(field: TField) => {
25582558
this.baseStore.setState((prev) => {
2559-
const fieldDefault = this.getFieldInfo(field)?.instance?.options
2560-
.defaultValue
2559+
const fieldDefault =
2560+
this.getFieldInfo(field)?.instance?.options.defaultValue
25612561
const formDefault = getBy(this.options.defaultValues, field)
25622562
const targetValue = fieldDefault ?? formDefault
25632563

0 commit comments

Comments
 (0)