fix(SelectControl): select zero value (#26353)

This commit is contained in:
Irina Shebarshina 2024-01-03 21:11:26 +03:00 committed by GitHub
parent 9432bd88f5
commit a0f0f698f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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