From e4071f32c3b18b359b45d4cba2da11695750db7e Mon Sep 17 00:00:00 2001 From: Kieran Hunt Date: Tue, 18 Feb 2020 08:11:31 +0200 Subject: [PATCH] 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 ``` https://github.com/vuejs/vuepress/issues/2190 --- packages/@vuepress/theme-default/util/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/@vuepress/theme-default/util/index.js b/packages/@vuepress/theme-default/util/index.js index 54b9e77a53..23e78f83c1 100644 --- a/packages/@vuepress/theme-default/util/index.js +++ b/packages/@vuepress/theme-default/util/index.js @@ -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), {