superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kri...@apache.org
Subject [incubator-superset] branch master updated: fix: groupable only columns populating in filters (#6993)
Date Fri, 15 Mar 2019 22:21:09 GMT
This is an automated email from the ASF dual-hosted git repository.

kristw 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 f760ba8  fix: groupable only columns populating in filters (#6993)
f760ba8 is described below

commit f760ba8d4c3d23b416b00cb4b382c96cd6631199
Author: 1AB9502 <cittalana@gmail.com>
AuthorDate: Fri Mar 15 16:20:53 2019 -0600

    fix: groupable only columns populating in filters (#6993)
---
 superset/assets/src/explore/controls.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/assets/src/explore/controls.jsx b/superset/assets/src/explore/controls.jsx
index b558956..6d9e7a4 100644
--- a/superset/assets/src/explore/controls.jsx
+++ b/superset/assets/src/explore/controls.jsx
@@ -1966,7 +1966,7 @@ export const controls = {
     default: null,
     description: '',
     mapStateToProps: state => ({
-      columns: state.datasource ? state.datasource.columns : [],
+      columns: state.datasource ? state.datasource.columns.filter(c => c.filterable) :
[],
       savedMetrics: state.datasource ? state.datasource.metrics : [],
       datasource: state.datasource,
     }),


Mime
View raw message