We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcb6dda commit 05a1ee8Copy full SHA for 05a1ee8
1 file changed
src/components/summit-dropdown/index.js
@@ -37,11 +37,7 @@ export default class SummitDropdown extends React.Component {
37
38
handleClick(ev) {
39
ev.preventDefault();
40
- if (
41
- this.state.summitValue !== null &&
42
- typeof this.state.summitValue === OBJECT_TYPEOF &&
43
- typeof this.state.summitValue.value !== UNDEFINED_TYPEOF
44
- )
+ if ( this.state?.summitValue?.value !== undefined )
45
this.props.onClick(this.state.summitValue.value);
46
}
47
0 commit comments