We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 789eaee commit b6cca6fCopy full SHA for b6cca6f
src/left-nav.jsx
@@ -225,8 +225,10 @@ const LeftNav = React.createClass({
225
if (this.props.header) {
226
let container = ReactDOM.findDOMNode(this.refs.clickAwayableElement);
227
let menu = ReactDOM.findDOMNode(this.refs.menuItems);
228
- let menuHeight = container.clientHeight - menu.offsetTop;
229
- menu.style.height = menuHeight + 'px';
+ if (menu){
+ let menuHeight = container.clientHeight - menu.offsetTop;
230
+ menu.style.height = menuHeight + 'px';
231
+ }
232
}
233
},
234
0 commit comments