Commit 29c622f4 authored by Yoan VALLET's avatar Yoan VALLET
Browse files

remove unknown variable

parent 4aea0a6e
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment