Skip to content

Commit e4071f3

Browse files
authored
Remove unneeded logging for nested sidebar groups
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
1 parent c9e59af commit e4071f3

File tree

1 file changed

+0
-5
lines changed
  • packages/@vuepress/theme-default/util

1 file changed

+0
-5
lines changed

packages/@vuepress/theme-default/util/index.js

-5
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,6 @@ function resolveItem (item, pages, base, groupDepth = 1) {
222222
title: item[1]
223223
})
224224
} else {
225-
if (groupDepth > 3) {
226-
console.error(
227-
'[vuepress] detected a too deep nested sidebar group.'
228-
)
229-
}
230225
const children = item.children || []
231226
if (children.length === 0 && item.path) {
232227
return Object.assign(resolvePage(pages, item.path, base), {

0 commit comments

Comments
 (0)