提交 1d1fe28b 编写于 作者: R Rob Lourens

Fix #53455 - categories without children should not be shown

上级 a115c730
......@@ -243,7 +243,9 @@ function _resolveSettingsTree(tocData: ITOCEntry, allSettings: Set<ISetting>): I
return <ITOCEntry>{
id: tocData.id,
label: tocData.label,
children: tocData.children.map(child => _resolveSettingsTree(child, allSettings))
children: tocData.children
.map(child => _resolveSettingsTree(child, allSettings))
.filter(child => (child.children && child.children.length) || (child.settings && child.settings.length))
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册