client/app/bundles/course/duplication/pages/Duplication/ItemsSelectorMenu/index.jsx
Function render
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
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,
- Create a ticketCreate a ticket
Function renderSidebarItem
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderSidebarItem(panelKey, titleKey, count, className) {
const { dispatch, enabledComponents } = this.props;
if (!enabledComponents.includes(panelKey)) {
return null;
}
- Create a ticketCreate a ticket