You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by gr...@apache.org on 2018/01/19 16:57:30 UTC
[incubator-superset] branch master updated: [Sql Lab] Fix
Autorefresh component pulling not stopped. (#4244)
This is an automated email from the ASF dual-hosted git repository.
graceguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 1c56319 [Sql Lab] Fix Autorefresh component pulling not stopped. (#4244)
1c56319 is described below
commit 1c56319be472399805d3f56e590a49f4ea239451
Author: Grace Guo <gr...@airbnb.com>
AuthorDate: Fri Jan 19 08:57:23 2018 -0800
[Sql Lab] Fix Autorefresh component pulling not stopped. (#4244)
---
superset/assets/javascripts/SqlLab/components/QueryAutoRefresh.jsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/superset/assets/javascripts/SqlLab/components/QueryAutoRefresh.jsx b/superset/assets/javascripts/SqlLab/components/QueryAutoRefresh.jsx
index 892b7ca..6f788ac 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);
+ ['running', 'started', 'pending', 'fetching'].indexOf(q.state) >= 0).length;
}
startTimer() {
if (!(this.timer)) {
--
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <co...@superset.apache.org>'].