Skip to content

Commit d2cc15a

Browse files
stherrienaspnetAwk34
authored andcommitted
fix(sql): Fix form field not displaying sequalize error
Display form field error when using sequelize as database fixes #2400
1 parent 913c5b5 commit d2cc15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: templates/app/client/app/account(auth)/signup/signup.controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default class SignupController {
6666
<%_ if(filters.sequelizeModels) { -%>
6767
// Update validity of form fields that match the sequelize errors
6868
if(err.name) {
69-
angular.forEach(err.fields, field => {
69+
angular.forEach(err.fields, (error, field) => {
7070
form[field].$setValidity('mongoose', false);
7171
this.errors[field] = err.message;
7272
});

0 commit comments

Comments
 (0)