Reverts apache/incubator-superset#4244 (#4303)

This commit is contained in:
Maxime Beauchemin
2018-01-26 18:09:09 -08:00
committed by Grace Guo
parent b9299d61ac
commit f8dcbf70c5

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).length;
['running', 'started', 'pending', 'fetching'].indexOf(q.state) >= 0);
}
startTimer() {
if (!(this.timer)) {