mirror of https://github.com/apache/superset.git
[Sql Lab] Fix Autorefresh component pulling not stopped. (#4244)
This commit is contained in:
parent
36caca3244
commit
1c56319be4
|
@ -22,7 +22,7 @@ class QueryAutoRefresh extends React.PureComponent {
|
|||
const queryKeys = Object.keys(queries);
|
||||
const queriesAsArray = queryKeys.map(key => queries[key]);
|
||||
return queriesAsArray.some(q =>
|
||||
['running', 'started', 'pending', 'fetching'].indexOf(q.state) >= 0);
|
||||
['running', 'started', 'pending', 'fetching'].indexOf(q.state) >= 0).length;
|
||||
}
|
||||
startTimer() {
|
||||
if (!(this.timer)) {
|
||||
|
|
Loading…
Reference in New Issue