[Sql Lab] Fix Autorefresh component pulling not stopped. (#4244)

This commit is contained in:
Grace Guo 2018-01-19 08:57:23 -08:00 committed by GitHub
parent 36caca3244
commit 1c56319be4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {