[hotfix] queries trigger polling (#2517)

This commit is contained in:
Maxime Beauchemin 2017-03-29 11:58:08 -07:00 committed by GitHub
parent be023aba8d
commit 5c441f4ddb
1 changed files with 1 additions and 1 deletions

View File

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