Did some test and found it does not work. I guess it is because the location 
that `data` references got changed so `payload.data.features` will not get 
updated.

This is part of the code:
```
    let data = [...this.props.payload.data.features];

    // Add colors from categories or fixed color
    data = this.addColor(data, fd);
```
If we change it to `let data = this.props.payload.data.features;` and then 
`data` get reassigned by `data = this.addColor(data, fd);`, it is not 
referencing to the location of `this.props.payload.data.features` anymore so 
`this.props.payload.data.features` will not be changed.

[ Full content available at: 
https://github.com/apache/incubator-superset/pull/5767 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to