Commit d9e66201 authored by Randall Leeds's avatar Randall Leeds

Improve guard in form-validate error handler

Fix #1370
parent 35c73197
......@@ -29,7 +29,7 @@ formValidate = ->
# Validate when a response is processed.
scope.$on 'error', (event, name) ->
return unless form.$name == name
updateField(field) for own _, field of form when field.$name?
updateField(field) for own _, field of form when field?.$name?
require: 'form'
......
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