From 116dca3e6fc78ef109f0385b6c4dbf2650dda080 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Thu, 13 Apr 2017 01:08:37 +0000 Subject: [PATCH] validationErrors is undedfined --- .../javascripts/explorev2/components/ExploreViewContainer.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset/assets/javascripts/explorev2/components/ExploreViewContainer.jsx b/superset/assets/javascripts/explorev2/components/ExploreViewContainer.jsx index 093f26db4a6..6a5317c7d3e 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