Skip to content

Commit

Permalink
[hotfix] queries trigger polling (#2517)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Mar 29, 2017
1 parent be023ab commit 5c441f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 5c441f4

Please sign in to comment.