Skip to content

Commit 27c260a

Browse files
committed
Use newSpecErrBatch for more wealth and prosperity
1 parent ce92bfc commit 27c260a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/plugins/validation/helpers.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ export function makeValidationWorker() {
3030
source: "semantic"
3131
})
3232
if(validationErrors.length) {
33-
validationErrors.forEach(err => {
34-
if(err) {
35-
errActions.newSpecErr(err)
36-
}
37-
})
33+
errActions.newSpecErrBatch(validationErrors)
3834
}
3935
}).catch(function (e) {
4036
console.error(e)

0 commit comments

Comments
 (0)