diff --git a/superset/assets/javascripts/SqlLab/components/QueryAutoRefresh.jsx b/superset/assets/javascripts/SqlLab/components/QueryAutoRefresh.jsx index 6f788acba4aba..892b7caf5294f 100644 --- a/superset/assets/javascripts/SqlLab/components/QueryAutoRefresh.jsx +++ b/superset/assets/javascripts/SqlLab/components/QueryAutoRefresh.jsx @@ -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)) {