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

[FIX] Copying the original object to save its dimensions

parent ae558240
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...
......@@ -234,11 +234,11 @@ function matchQueries(attendsSchoolObj, populationObj) {
let match = [];
for (let i = 0; i < attendsSchoolObj.length; i++) {
let newObj = {};
let newObj = attendsSchoolObj;
newObj.total = (attendsSchoolObj[i].total / populationObj[i].total) * 100;
newObj.faixa_etaria = attendsSchoolObj[i].faixa_etaria;
newObj.year = attendsSchoolObj[i].year;
//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