diff --git a/src/utils/Resources.js b/src/utils/Resources.js index 17d541459..b825ef993 100644 --- a/src/utils/Resources.js +++ b/src/utils/Resources.js @@ -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) || []