Opetushallitus/eperusteet-opintopolku

View on GitHub
src/stores/PerusteenTutkinnonosaStore.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

  public async fetch() {
    this.state.arviointiasteikot = (await Arviointiasteikot.getAll()).data;
    const tutkinnonOsaViitteet = _.flatMap(await Promise.all(_.map(this.peruste.suoritustavat, async (suoritustapa) => {
      return (await TutkinnonRakenne.getPerusteenTutkinnonOsat(this.peruste.id!, suoritustapa.suoritustapakoodi!)).data;
    })));
Severity: Minor
Found in src/stores/PerusteenTutkinnonosaStore.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status