Skip to content

Commit

Permalink
fix(children): Filter undefined children
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1p committed Jan 28, 2019
1 parent 6babbd9 commit 0afdd41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/vueSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = ({ fileTree, codeFolder, title }) => {
children.forEach(child => {
if (child.children && child.children.length > 0) {
newChildren = newChildren.concat(buildChildren(child.children, child.name, depth + 1));
} else {
} else if (child.fullPath) {
newChildren.push(child.fullPath);
}
});
Expand Down

0 comments on commit 0afdd41

Please sign in to comment.