Skip to content

Commit

Permalink
fix(SelectControl): select zero value (apache#26353)
Browse files Browse the repository at this point in the history
  • Loading branch information
rekilina authored Jan 3, 2024
1 parent 9432bd8 commit a0f0f69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export default class SelectControl extends React.PureComponent {

const getValue = () => {
const currentValue =
value ||
value ??
(this.props.default !== undefined ? this.props.default : undefined);

// safety check - the value is intended to be undefined but null was used
Expand Down

0 comments on commit a0f0f69

Please sign in to comment.