This is an automated email from the ASF dual-hosted git repository.

beto 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 1a4199a  [bugfix] deckgl scatter CategoricalDeckGLContainer (#6288)
1a4199a is described below

commit 1a4199af7a028ad6464d1ce61ec3c903aeaac3e2
Author: Maxime Beauchemin <maximebeauche...@gmail.com>
AuthorDate: Tue Nov 6 17:13:55 2018 -0800

    [bugfix] deckgl scatter CategoricalDeckGLContainer (#6288)
---
 .../assets/src/visualizations/deckgl/CategoricalDeckGLContainer.jsx    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/superset/assets/src/visualizations/deckgl/CategoricalDeckGLContainer.jsx 
b/superset/assets/src/visualizations/deckgl/CategoricalDeckGLContainer.jsx
index 49e37af..417540a 100644
--- a/superset/assets/src/visualizations/deckgl/CategoricalDeckGLContainer.jsx
+++ b/superset/assets/src/visualizations/deckgl/CategoricalDeckGLContainer.jsx
@@ -99,8 +99,9 @@ export default class CategoricalDeckGLContainer extends 
React.PureComponent {
     }
 
     // Show only categories selected in the legend
+    const cats = this.state.categories;
     if (fd.dimension) {
-      features = features.filter(d => 
this.state.categories[d.cat_color].enabled);
+      features = features.filter(d => cats[d.cat_color] && 
cats[d.cat_color].enabled);
     }
 
     const filteredPayload = {

Reply via email to