src/components/header/HeaderController.js
Showing 2 of 2 total issues
Consider simplifying this complex logical expression. Open
Open
if ((this.options.sortType === 'single' && !(this.options.modifierActive && modifierPressed)) || (this.options.sortType === 'multiple' && this.options.modifierActive && modifierPressed)) { this.columns.left.forEach(unsortColumn); this.columns.center.forEach(unsortColumn); this.columns.right.forEach(unsortColumn);
- Create a ticketCreate a ticket
Function onSorted
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
onSorted(sortedColumn, modifierPressed) { // if sort type is single, then only one column can be sorted at once, // so we set the sort to undefined for the other columns function unsortColumn(column) { if (column !== sortedColumn) {
- Read upRead up
- Create a ticketCreate a ticket