Skip to content

Commit

Permalink
fix($theme-default): sidebar group item cannot contain empty children (
Browse files Browse the repository at this point in the history
…close: #1278)
  • Loading branch information
ulivz committed Feb 13, 2019
1 parent 83ff9ad commit 5f1eb0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/theme-default/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function resolveItem (item, pages, base, groupDepth = 1) {
)
}
const children = item.children || []
if (children.length === 0) {
if (children.length === 0 && item.path) {
return Object.assign(resolvePage(pages, item.path, base), {
title: item.title
})
Expand Down

0 comments on commit 5f1eb0e

Please sign in to comment.