superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grace...@apache.org
Subject [incubator-superset] branch master updated: [Sql Lab] Fix Autorefresh component pulling not stopped. (#4244)
Date Fri, 19 Jan 2018 16:57:30 GMT
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 <grace.guo@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" <commits@superset.apache.org>'].

Mime
View raw message