diff --git a/src/left-nav.jsx b/src/left-nav.jsx index e01b11c12f19da..a00ce427ba1daa 100644 --- a/src/left-nav.jsx +++ b/src/left-nav.jsx @@ -223,10 +223,12 @@ const LeftNav = React.createClass({ _updateMenuHeight() { if (this.props.header) { - let container = ReactDOM.findDOMNode(this.refs.clickAwayableElement); - let menu = ReactDOM.findDOMNode(this.refs.menuItems); - let menuHeight = container.clientHeight - menu.offsetTop; - menu.style.height = menuHeight + 'px'; + const menu = ReactDOM.findDOMNode(this.refs.menuItems); + if (menu){ + const container = ReactDOM.findDOMNode(this.refs.clickAwayableElement); + const menuHeight = container.clientHeight - menu.offsetTop; + menu.style.height = menuHeight + 'px'; + } } },