Skip to content
Snippets Groups Projects
Commit 1f2376a3 authored by Fernando Gbur dos Santos's avatar Fernando Gbur dos Santos
Browse files

[FIX] Trying to fix the null return in route

parent 058b461a
No related branches found
No related tags found
3 merge requests!417[ADD] Indicator "Taxa de Atendimento Educacional" updated on production!,!416[ADD] Route almost ready, some tests needed. Comments added and filters that...,!414[ADD] Route almost ready, some tests needed. Comments added and filters that...
......@@ -318,9 +318,9 @@ function matchQueries(attendsSchoolObj, populationObj) {
for (let i = 0; i < attendsSchoolObj.length; i++) {
let newObj = {};
newObj.total = (attendsSchoolObj.total / populationObj.total) * 100;
newObj.faixa_etaria = attendsSchoolObj.faixa_etaria;
newObj.year = attendsSchoolObj.year;
newObj.total = (attendsSchoolObj[i].total / populationObj[i].total) * 100;
newObj.faixa_etaria = attendsSchoolObj[i].faixa_etaria;
newObj.year = attendsSchoolObj[i].year;
match.push(newObj);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment