Skip to content

Commit

Permalink
validationErrors is undedfined
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 13, 2017
1 parent b448394 commit 116dca3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ class ExploreViewContainer extends React.Component {
}
hasErrors() {
const ctrls = this.props.controls;
return Object.keys(ctrls).some(k => ctrls[k].validationErrors.length > 0);
return Object.keys(ctrls).some(
k => ctrls[k].validationErrors && ctrls[k].validationErrors.length > 0);
}
renderErrorMessage() {
// Returns an error message as a node if any errors are in the store
Expand Down

0 comments on commit 116dca3

Please sign in to comment.