Skip to content

Commit

Permalink
fix: duplicate events (jquense#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrjoson authored and jquense committed Dec 18, 2018
1 parent 91c6ec0 commit b8e26b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/Resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ export default function Resources(resources, accessors) {
if (!resources) {
// Return all events if resources are not provided
eventsByResource.set(NONE, events)
return eventsByResource
}

events.forEach(event => {
const id = accessors.resource(event) || NONE
let resourceEvents = eventsByResource.get(id) || []
Expand Down

0 comments on commit b8e26b0

Please sign in to comment.