Skip to content

Commit 548cd0a

Browse files
committed
Release candidate fix: don't pass bad values to newSpecErrBatch
1 parent cdaec16 commit 548cd0a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/plugins/validation/helpers.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ export function makeValidationWorker() {
2929
errActions.clear({
3030
source: "semantic"
3131
})
32+
33+
// Filter out anything funky
34+
validationErrors = validationErrors
35+
.filter(val => typeof val === "object" && val !== null)
36+
3237
if(validationErrors.length) {
3338
errActions.newSpecErrBatch(validationErrors)
3439
}

0 commit comments

Comments
 (0)