wongjiahau/ttap-web

View on GitHub
src/ts/redux/actions/defilterTimetable.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function GenerateNewState has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  protected GenerateNewState(state: IMasterState): IMasterState {
    const newClickedTimeConstraint =
      state.SetTimeConstraintState.ClickedTimeConstraint.slice();
    newClickedTimeConstraint[this.clickedBox.Day] ^= this.clickedBox.TimePeriod;
    const newUidsOfClickedBox =
Severity: Minor
Found in src/ts/redux/actions/defilterTimetable.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status