Skip to content

Commit

Permalink
[Sql Lab] Fix Autorefresh component pulling not stopped. (#4244)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace Guo committed Jan 19, 2018
1 parent 36caca3 commit 1c56319
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 1c56319

Please sign in to comment.