From 5da86db6dac7857017b8412ea14a15598c6f879d Mon Sep 17 00:00:00 2001 From: michellethomas Date: Tue, 21 Nov 2017 10:22:55 -0800 Subject: [PATCH] When checking if you should renderTriggered make sure key exists in controls (#3912) --- .../javascripts/explore/components/ExploreViewContainer.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/superset/assets/javascripts/explore/components/ExploreViewContainer.jsx b/superset/assets/javascripts/explore/components/ExploreViewContainer.jsx index 43f6c012e61f4..835cc1a3beef4 100644 --- a/superset/assets/javascripts/explore/components/ExploreViewContainer.jsx +++ b/superset/assets/javascripts/explore/components/ExploreViewContainer.jsx @@ -53,6 +53,7 @@ class ExploreViewContainer extends React.Component { } // if any control value changed and it's an instant control if (Object.keys(np.controls).some(key => (np.controls[key].renderTrigger && + typeof this.props.controls[key] !== 'undefined' && !areObjectsEqual(np.controls[key].value, this.props.controls[key].value)))) { this.props.actions.renderTriggered(new Date().getTime(), this.props.chart.chartKey); }