You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by kr...@apache.org on 2019/03/15 22:21:09 UTC

[incubator-superset] branch master updated: fix: groupable only columns populating in filters (#6993)

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 <ci...@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,
     }),