Commit 37ff8175 authored by Randall Leeds's avatar Randall Leeds

Improve guard in form validate

I missed this in b67b2964b7a1fd1271be650ea02cf967fd0e17a3
parent d3dbfb25
......@@ -24,7 +24,7 @@ formValidate = ->
# Validate the field when submit is clicked.
elem.on 'submit', (event) ->
updateField(field) for own _, field of form when field.$name?
updateField(field) for own _, field of form when field?.$name?
# Validate when a response is processed.
scope.$on 'error', (event, name) ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment