You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/04/17 17:29:18 UTC

[GitHub] [incubator-superset] nytai commented on a change in pull request #9530: [charts] adds new filters ui

nytai commented on a change in pull request #9530: [charts] adds new filters ui
URL: https://github.com/apache/incubator-superset/pull/9530#discussion_r410367449
 
 

 ##########
 File path: superset-frontend/src/views/chartList/ChartList.tsx
 ##########
 @@ -311,11 +320,24 @@ class ChartList extends React.PureComponent<Props, State> {
       },
       loading: true,
     });
-    const filterExps = filters.map(({ id: col, operator: opr, value }) => ({
-      col,
-      opr,
-      value,
-    }));
+    const filterExps = filters
+      .map(({ id: col, operator: opr, value }) => ({
+        col,
+        opr,
+        value,
+      }))
+      .reduce((acc, fltr) => {
+        if (fltr.col === 'datasource' && typeof fltr.value === 'object') {
 
 Review comment:
   there's another null check bellow. I'll move it up here so it's more visible 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org