Coursemology/coursemology2

View on GitHub
client/app/bundles/course/duplication/pages/Duplication/ItemsSelectorMenu/index.jsx

Summary

Maintainability
A
3 hrs
Test Coverage

Function render has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render() {
    const { selectedItems, courses, destinationCourseId } = this.props;
    // Disabled models for cherry pick duplication as defined in `disabled_cherrypickable_types`.
    const unduplicableObjectTypes = courses.find(
      (course) => course.id === destinationCourseId,

Function renderSidebarItem has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  renderSidebarItem(panelKey, titleKey, count, className) {
    const { dispatch, enabledComponents } = this.props;
    if (!enabledComponents.includes(panelKey)) {
      return null;
    }

There are no issues that match your filters.

Category
Status