From 44029c2191224cbc384457a7ee41d07fbefebde3 Mon Sep 17 00:00:00 2001 From: kialam Date: Tue, 11 Dec 2018 16:57:38 -0500 Subject: [PATCH] Use object desctructuring. --- src/components/AnsibleSelect/AnsibleSelect.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/AnsibleSelect/AnsibleSelect.jsx b/src/components/AnsibleSelect/AnsibleSelect.jsx index 632a5b544f..d411c1d17a 100644 --- a/src/components/AnsibleSelect/AnsibleSelect.jsx +++ b/src/components/AnsibleSelect/AnsibleSelect.jsx @@ -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 (