mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
First time fetching chart should not force refresh. (#3822)
This commit is contained in:
@@ -62,7 +62,12 @@ class Chart extends React.PureComponent {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.runQuery();
|
||||
if (this.props.triggerQuery) {
|
||||
this.props.actions.runQuery(this.props.formData, false,
|
||||
this.props.timeout,
|
||||
this.props.chartKey,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
@@ -123,13 +128,6 @@ class Chart extends React.PureComponent {
|
||||
return d3format(format, number);
|
||||
}
|
||||
|
||||
runQuery() {
|
||||
this.props.actions.runQuery(this.props.formData, true,
|
||||
this.props.timeout,
|
||||
this.props.chartKey,
|
||||
);
|
||||
}
|
||||
|
||||
render_template(s) {
|
||||
const context = {
|
||||
width: this.width(),
|
||||
|
||||
Reference in New Issue
Block a user