Skip to content

Commit

Permalink
[Sql Lab] Fix Autorefresh component pulling not stopped. (apache#4244)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace Guo authored and michellethomas committed May 23, 2018
1 parent c443b89 commit 0730aa8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 0730aa8

Please sign in to comment.