Skip to content

callOnEachEvent throws if eventTypes is null #116

@chmac

Description

@chmac

I read the code here:

async function callOnEachEvent(callback, eventTypes = null) {

I assume that the second parameter was optional, but omitting it produced a firehose of errors. Adding it back as an empty array stopped the errors. I'd be happy to submit a PR switching null to [] if that's helpful. Seems like null is not a valid value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions