mirror of
https://github.com/apache/superset.git
synced 2024-09-16 10:39:55 -04:00
fix(SelectControl): select zero value (#26353)
This commit is contained in:
parent
9432bd88f5
commit
a0f0f698f4
@ -215,7 +215,7 @@ export default class SelectControl extends React.PureComponent {
|
|||||||
|
|
||||||
const getValue = () => {
|
const getValue = () => {
|
||||||
const currentValue =
|
const currentValue =
|
||||||
value ||
|
value ??
|
||||||
(this.props.default !== undefined ? this.props.default : undefined);
|
(this.props.default !== undefined ? this.props.default : undefined);
|
||||||
|
|
||||||
// safety check - the value is intended to be undefined but null was used
|
// safety check - the value is intended to be undefined but null was used
|
||||||
|
Loading…
Reference in New Issue
Block a user