Skip to content
Snippets Groups Projects
Commit 97ea80f7 authored by Yoan VALLET's avatar Yoan VALLET
Browse files

remove unknown variable

parent 335fe4c4
Branches
Tags
1 merge request!20Update master branch
......@@ -233,10 +233,10 @@ async function agregateMonthAndYearData(data) {
data.forEach(element => {
element.year + '-' + element.month in monthData
? (monthData[element.year + '-' + element.month] += element.load - oldValue)
? (monthData[element.year + '-' + element.month] += element.load)
: (monthData[element.year + '-' + element.month] = element.load)
element.year in yearData
? (yearData[element.year] += element.load - oldValue)
? (yearData[element.year] += element.load)
: (yearData[element.year] = element.load)
})
// Agregation for Month data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment