File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1093,6 +1093,7 @@ export class FormApi<
10931093 const isFieldPristine = ! currBaseMeta . isDirty
10941094 const isDefaultValue = evaluate (
10951095 curFieldVal ,
1096+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
10961097 this . getFieldInfo ( fieldName ) ?. instance ?. options . defaultValue ??
10971098 getBy ( this . options . defaultValues , fieldName ) ,
10981099 )
@@ -2557,6 +2558,7 @@ export class FormApi<
25572558 resetField = < TField extends DeepKeys < TFormData > > ( field : TField ) => {
25582559 this . baseStore . setState ( ( prev ) => {
25592560 const fieldDefault =
2561+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
25602562 this . getFieldInfo ( field ) ?. instance ?. options . defaultValue
25612563 const formDefault = getBy ( this . options . defaultValues , field )
25622564 const targetValue = fieldDefault ?? formDefault
You can’t perform that action at this time.
0 commit comments