eperusteet-opintopolku-app/yo/app/scripts/views/etusivu.ts
File etusivu.ts
has 296 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*
* Copyright (c) 2013 The Finnish Board of Education - Opetushallitus
*
* This program is free software: Licensed under the EUPL, Version 1.1 or - as
* soon as they will be approved by the European Commission - subsequent versions
Function fetch
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.fetch = (cb, errorCb) => {
const key = "koulutustyyppi_1x";
const params = paramMap[key];
const amDeferred = Perusteet.get(params, res => {
perusteet[key] = res.data;