1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Use object desctructuring.

This commit is contained in:
kialam 2018-12-11 16:57:38 -05:00
parent 9627a73978
commit 44029c2191
No known key found for this signature in database
GPG Key ID: 2D0E60E4B8C7EA0F

View File

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