mirror of
https://github.com/apache/superset.git
synced 2026-04-09 19:35:21 +00:00
[bugfix] only filterable columns should show up in FilterBox list (#3105)
* [bugfix] only filterable columns should show up in FilterBox list * Touchups
This commit is contained in:
committed by
GitHub
parent
49ab09101b
commit
95509f2000
@@ -43,7 +43,8 @@ export default class SelectControl extends React.PureComponent {
|
||||
this.onChange = this.onChange.bind(this);
|
||||
}
|
||||
componentWillReceiveProps(nextProps) {
|
||||
if (nextProps.choices !== this.props.choices) {
|
||||
if (nextProps.choices !== this.props.choices ||
|
||||
nextProps.options !== this.props.options) {
|
||||
const options = this.getOptions(nextProps);
|
||||
this.setState({ options });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user