Skip to content

Commit

Permalink
Remove unneeded logging for nested sidebar groups
Browse files Browse the repository at this point in the history
This arbitrarily logged out when nesting was greater than 3.

```
07:58:13.598 [vuepress] detected a too deep nested sidebar group. 2 2.258cb917.js:1:3364
```

vuejs#2190
  • Loading branch information
KieranHunt authored Feb 18, 2020
1 parent c9e59af commit e4071f3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/@vuepress/theme-default/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,6 @@ function resolveItem (item, pages, base, groupDepth = 1) {
title: item[1]
})
} else {
if (groupDepth > 3) {
console.error(
'[vuepress] detected a too deep nested sidebar group.'
)
}
const children = item.children || []
if (children.length === 0 && item.path) {
return Object.assign(resolvePage(pages, item.path, base), {
Expand Down

0 comments on commit e4071f3

Please sign in to comment.