Skip to content

Commit fce803b

Browse files
committed
allErrors stopped working when realtime validation errors were cleared.
1 parent ee6e874 commit fce803b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

src/lib/entity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 }));

0 commit comments

Comments
 (0)