reactioncommerce/redoc

View on GitHub
common/components/toc.jsx

Summary

Maintainability
A
1 hr
Test Coverage

Function renderMenu has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  renderMenu(parentPath) {
    let items = [];
    let parentItems = _.filter(this.props.docs, function(item) { return item.parentPath === parentPath });
    if (parentItems.length === 0) {
      return [];
Severity: Minor
Found in common/components/toc.jsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status