mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
validationErrors is undedfined
This commit is contained in:
parent
b448394077
commit
116dca3e6f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user