Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #22 from Graf009/fixHeader
Browse files Browse the repository at this point in the history
Fixed error if there are no children in the header
  • Loading branch information
tleunen committed Sep 25, 2015
2 parents 56eacea + 34e0b43 commit 871c46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Header extends React.Component {

var isRowOrTab = false;
React.Children.forEach(this.props.children, child => {
if(child.type === HeaderRow || child.type === HeaderTabs) {
if(child && (child.type === HeaderRow || child.type === HeaderTabs)) {
isRowOrTab = true;
}
});
Expand Down

0 comments on commit 871c46e

Please sign in to comment.