File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1403,7 +1403,8 @@ export class FieldApi<
1403
1403
fieldLevelError,
1404
1404
} )
1405
1405
1406
- if ( field . state . meta . errorMap [ errorMapKey ] !== newErrorValue ) {
1406
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
1407
+ if ( field . state . meta . errorMap ?. [ errorMapKey ] !== newErrorValue ) {
1407
1408
field . setMeta ( ( prev ) => ( {
1408
1409
...prev ,
1409
1410
errorMap : {
Original file line number Diff line number Diff line change @@ -1339,7 +1339,8 @@ export class FormApi<
1339
1339
}
1340
1340
}
1341
1341
1342
- if ( this . state . errorMap [ errorMapKey ] !== formError ) {
1342
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
1343
+ if ( this . state . errorMap ?. [ errorMapKey ] !== formError ) {
1343
1344
this . baseStore . setState ( ( prev ) => ( {
1344
1345
...prev ,
1345
1346
errorMap : {
You can’t perform that action at this time.
0 commit comments