Skip to content

Commit

Permalink
fix: changes .reduce to have a default value
Browse files Browse the repository at this point in the history
  • Loading branch information
xcambar committed Oct 27, 2018
1 parent e7453a0 commit ae8a8c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function(collections) {
{},
...collections
.map(collection => collection.allEvents)
.reduce((acc, events) => [...acc, ...events])
.reduce((acc, events) => [...acc, ...events], [])
.map(({ event }) => ({ [event]: event }))
);

Expand Down

0 comments on commit ae8a8c9

Please sign in to comment.