mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
[explorev2] adding support for client side validators on controls (#1920)
* Adding support for client side validators on controls * Applying validators to more fields * Addressing comments
This commit is contained in:
committed by
GitHub
parent
fc74fbeeaa
commit
470a6e9d76
@@ -33,11 +33,7 @@ export default class SelectField extends React.Component {
|
||||
if (this.props.multi) {
|
||||
optionValue = opt ? opt.map((o) => o.value) : null;
|
||||
}
|
||||
if (this.props.name === 'datasource' && optionValue !== null) {
|
||||
this.props.onChange(this.props.name, optionValue, opt.label);
|
||||
} else {
|
||||
this.props.onChange(this.props.name, optionValue);
|
||||
}
|
||||
this.props.onChange(optionValue);
|
||||
}
|
||||
renderOption(opt) {
|
||||
if (this.props.name === 'viz_type') {
|
||||
|
||||
Reference in New Issue
Block a user