mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
DEV: removes _.reduce from codebase (#6628)
This commit is contained in:
@ -116,7 +116,7 @@ const Report = Discourse.Model.extend({
|
||||
|
||||
@computed("data")
|
||||
currentTotal(data) {
|
||||
return _.reduce(data, (cur, pair) => cur + pair.y, 0);
|
||||
return data.reduce((cur, pair) => cur + pair.y, 0);
|
||||
},
|
||||
|
||||
@computed("data", "currentTotal")
|
||||
|
Reference in New Issue
Block a user