diff --git a/superset/assets/javascripts/SqlLab/components/QueryAutoRefresh.jsx b/superset/assets/javascripts/SqlLab/components/QueryAutoRefresh.jsx index b52128898d82c..494e1d2eb7c08 100644 --- a/superset/assets/javascripts/SqlLab/components/QueryAutoRefresh.jsx +++ b/superset/assets/javascripts/SqlLab/components/QueryAutoRefresh.jsx @@ -19,7 +19,7 @@ class QueryAutoRefresh extends React.PureComponent { const { queries } = this.props; const queryKeys = Object.keys(queries); const queriesAsArray = queryKeys.map(key => queries[key]); - return queriesAsArray.some(q => q.state === 'running' || q.state === 'started'); + return queriesAsArray.some(q => ['running', 'started', 'pending'].indexOf(q.state) >= 0); } startTimer() { if (!(this.timer)) {