Use object desctructuring.

This commit is contained in:
kialam
2018-12-11 16:57:38 -05:00
parent 9627a73978
commit 44029c2191

View File

@@ -16,8 +16,8 @@ class AnsibleSelect extends React.Component {
} }
render() { render() {
const hide = this.props.hidden; const { hidden } = this.props;
if (hide) { if (hidden) {
return null; return null;
} else { } else {
return ( return (