Skip to content

Commit

Permalink
fix: duplicate events (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrjoson authored and RistoZoric committed Dec 18, 2018
1 parent 15ab901 commit f6b8e83
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 f6b8e83

Please sign in to comment.