diff options
Diffstat (limited to 'webapp/components/admin_console/admin_sidebar_section.jsx')
-rw-r--r-- | webapp/components/admin_console/admin_sidebar_section.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/admin_console/admin_sidebar_section.jsx b/webapp/components/admin_console/admin_sidebar_section.jsx index e0f327da0..2a8ecab71 100644 --- a/webapp/components/admin_console/admin_sidebar_section.jsx +++ b/webapp/components/admin_console/admin_sidebar_section.jsx @@ -16,7 +16,7 @@ export default class AdminSidebarSection extends React.Component { type: PropTypes.string, parentLink: PropTypes.string, subsection: PropTypes.bool, - children: PropTypes.arrayOf(PropTypes.element), + children: PropTypes.node, action: PropTypes.node, onlyActiveOnIndex: PropTypes.bool }; @@ -39,7 +39,7 @@ export default class AdminSidebarSection extends React.Component { const link = this.getLink(); let clonedChildren = null; - if (this.props.children.length > 0) { + if (this.props.children) { clonedChildren = ( <ul className='nav nav__sub-menu subsections'> { |