mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
[hotfix] queries trigger polling (#2517)
This commit is contained in:
parent
be023aba8d
commit
5c441f4ddb
@ -19,7 +19,7 @@ class QueryAutoRefresh extends React.PureComponent {
|
|||||||
const { queries } = this.props;
|
const { queries } = this.props;
|
||||||
const queryKeys = Object.keys(queries);
|
const queryKeys = Object.keys(queries);
|
||||||
const queriesAsArray = queryKeys.map(key => queries[key]);
|
const queriesAsArray = queryKeys.map(key => queries[key]);
|
||||||
return queriesAsArray.some(q => q.state === 'running' || q.state === 'started');
|
return queriesAsArray.some(q => ['running', 'started', 'pending'].indexOf(q.state) >= 0);
|
||||||
}
|
}
|
||||||
startTimer() {
|
startTimer() {
|
||||||
if (!(this.timer)) {
|
if (!(this.timer)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user