Opetushallitus/eperusteet-opintopolku

View on GitHub
src/stores/SisaltoviiteStore.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

  public async fetch() {
    this.state.fetching = true;
    this.state.sisaltoviite = (await JulkinenApi.getOpetussuunnitelmaTekstit(this.opetussuunnitelma.id!, this.sisaltoviiteId, _.toString(this.opetussuunnitelma.koulutustoimija!.id))).data;
    if (this.state.sisaltoviite.tosa && _.size(this.state.sisaltoviite.tosa.toteutukset) > 0) {
      const koodit = _.chain(await Promise.all(
Severity: Minor
Found in src/stores/SisaltoviiteStore.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status