wongjiahau/ttap-web

View on GitHub
src/ts/redux/actions/saveTimetable/saveTimetableAsHtml.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function Save has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  protected Save(timetable: Timetable) {
    let html = (document.getElementById("timetable-view") as HTMLElement)
      .outerHTML;
    html = html.replace("display: none", "display: inline"); // display timetable summary
    const data = `
Severity: Minor
Found in src/ts/redux/actions/saveTimetable/saveTimetableAsHtml.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status