DEV: removes _.reduce from codebase (#6628)
This commit is contained in:
parent
0a8227d19c
commit
86dafc1f25
|
@ -116,7 +116,7 @@ const Report = Discourse.Model.extend({
|
||||||
|
|
||||||
@computed("data")
|
@computed("data")
|
||||||
currentTotal(data) {
|
currentTotal(data) {
|
||||||
return _.reduce(data, (cur, pair) => cur + pair.y, 0);
|
return data.reduce((cur, pair) => cur + pair.y, 0);
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed("data", "currentTotal")
|
@computed("data", "currentTotal")
|
||||||
|
|
Loading…
Reference in New Issue