mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
First time fetching chart should not force refresh. (#3822)
This commit is contained in:
parent
d663bea5e6
commit
6c52f2ff72
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user