From 4397512b29a6fc601cd362a610e1e9ab4980c7a4 Mon Sep 17 00:00:00 2001 From: Grace Guo Date: Fri, 16 Aug 2019 17:01:53 -0700 Subject: [PATCH] [Explore view] Fix extra data fetch when user clicks Run Query --- .../src/explore/components/ExploreViewContainer.jsx | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/superset/assets/src/explore/components/ExploreViewContainer.jsx b/superset/assets/src/explore/components/ExploreViewContainer.jsx index 56b5e4319a40f..7990c9be1f971 100644 --- a/superset/assets/src/explore/components/ExploreViewContainer.jsx +++ b/superset/assets/src/explore/components/ExploreViewContainer.jsx @@ -131,8 +131,6 @@ class ExploreViewContainer extends React.Component { /* eslint no-unused-vars: 0 */ componentDidUpdate(prevProps, prevState) { - this.triggerQueryIfNeeded(); - const changedControlKeys = this.findChangedControlKeys(prevProps.controls, this.props.controls); if (this.hasDisplayControlChanged(changedControlKeys, this.props.controls)) { this.addHistory({}); @@ -213,17 +211,6 @@ class ExploreViewContainer extends React.Component { ); } - triggerQueryIfNeeded() { - if (this.props.chart.triggerQuery && !this.hasErrors()) { - this.props.actions.postChartFormData( - this.props.form_data, - false, - this.props.timeout, - this.props.chart.id, - ); - } - } - addHistory({ isReplace = false, title }) { const { payload } = getExploreUrlAndPayload({ formData: this.props.form_data }); const longUrl = getExploreLongUrl(this.props.form_data, null, false);