mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
Syncing the timeout param from backend (#3329)
* Syncing the timeout param from backend * Linting
This commit is contained in:
committed by
GitHub
parent
527572c3eb
commit
2923a125db
@@ -44,6 +44,7 @@ const propTypes = {
|
||||
standalone: PropTypes.bool,
|
||||
datasourceType: PropTypes.string,
|
||||
datasourceId: PropTypes.number,
|
||||
timeout: PropTypes.number,
|
||||
};
|
||||
|
||||
class ChartContainer extends React.PureComponent {
|
||||
@@ -148,7 +149,7 @@ class ChartContainer extends React.PureComponent {
|
||||
}
|
||||
|
||||
runQuery() {
|
||||
this.props.actions.runQuery(this.props.formData, true);
|
||||
this.props.actions.runQuery(this.props.formData, true, this.props.timeout);
|
||||
}
|
||||
|
||||
updateChartTitle(newTitle) {
|
||||
@@ -346,6 +347,7 @@ function mapStateToProps({ explore, chart }) {
|
||||
chartUpdateStartTime: chart.chartUpdateStartTime,
|
||||
latestQueryFormData: chart.latestQueryFormData,
|
||||
queryResponse: chart.queryResponse,
|
||||
timeout: explore.common.conf.SUPERSET_WEBSERVER_TIMEOUT,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user