Skip to content

Commit

Permalink
fix generation of JS validation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
damianham committed May 13, 2019
1 parent 6cc1a64 commit 4c96a5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scaffold/view/src/modules/{{name}}/js/{{name}}.js.lqd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class {{class_name}} extends Resource {
statusText: "Could not save {{name}}",
responseJSON: {
error: "Validation failed. [" + erros.map((err) => {
return `Amber::Validators:Error(@param="${err.field}", @value="${err.value}", @message="Field ${err.field} ${err.message}" )`
return `Amber::Validators::Error(@param="${err.field}", @value="${err.value}", @message="Field ${err.field} ${err.message}" )`
}).join(', ') + "]"
}
})
Expand Down

0 comments on commit 4c96a5f

Please sign in to comment.