mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
Fix "Select all" option in SelectControl (#11692)
This commit is contained in:
committed by
GitHub
parent
274420bc5a
commit
8a39f2799a
@@ -109,11 +109,9 @@ export default class SelectControl extends React.PureComponent {
|
||||
opt.forEach(o => {
|
||||
// select all options
|
||||
if (o.meta === true) {
|
||||
this.props.onChange(
|
||||
this.getOptions(this.props)
|
||||
.filter(x => !x.meta)
|
||||
.map(x => x[this.props.valueKey]),
|
||||
);
|
||||
optionValue = this.getOptions(this.props)
|
||||
.filter(x => !x.meta)
|
||||
.map(x => x[this.props.valueKey]);
|
||||
return;
|
||||
}
|
||||
optionValue.push(o[this.props.valueKey] || o);
|
||||
|
||||
Reference in New Issue
Block a user