File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
1010### Fixed
1111
12+ - ` allErrors ` stopped working when realtime validation errors were cleared.
1213- Large payloads with ` dataType: 'json' ` still didn't work, fixed now.
1314
1415## [ 0.8.1] - 2023-04-24
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export function findErrors(
4343 path : string [ ] = [ ]
4444) : { path : string [ ] ; message : string } [ ] {
4545 const entries = Object . entries ( errors ) ;
46- return entries . flatMap ( ( [ key , value ] ) => {
46+ return entries . filter ( ( [ , value ] ) => value !== undefined ) . flatMap ( ( [ key , value ] ) => {
4747 if ( Array . isArray ( value ) && value . length > 0 ) {
4848 const currPath = path . concat ( [ key ] ) ;
4949 return value . map ( ( message ) => ( { path : currPath , message } ) ) ;
You can’t perform that action at this time.
0 commit comments