Skip to content

Commit 699134c

Browse files
committed
refactor(form-core): remove unnecessary eslint-disable for optional chain
1 parent 53da788 commit 699134c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/form-core/src/FormApi.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2558,8 +2558,7 @@ export class FormApi<
25582558
resetField = <TField extends DeepKeys<TFormData>>(field: TField) => {
25592559
this.baseStore.setState((prev) => {
25602560
const fieldDefault =
2561-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
2562-
this.getFieldInfo(field)?.instance?.options.defaultValue
2561+
this.getFieldInfo(field).instance?.options.defaultValue
25632562
const formDefault = getBy(this.options.defaultValues, field)
25642563
const targetValue = fieldDefault ?? formDefault
25652564

0 commit comments

Comments
 (0)