common/components/toc.jsx
Function renderMenu
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderMenu(parentPath) {
let items = [];
let parentItems = _.filter(this.props.docs, function(item) { return item.parentPath === parentPath });
if (parentItems.length === 0) {
return [];