diff --git a/superset/assets/javascripts/explorev2/components/ExploreViewContainer.jsx b/superset/assets/javascripts/explorev2/components/ExploreViewContainer.jsx index 093f26db4a6f3..6a5317c7d3ebc 100644 --- a/superset/assets/javascripts/explorev2/components/ExploreViewContainer.jsx +++ b/superset/assets/javascripts/explorev2/components/ExploreViewContainer.jsx @@ -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