Skip to content

Angular/zone.js messed up with Symbol.iterator #12

@compulim

Description

@compulim

Unfortunately, we can't use newer featurew like iterable object unless zone.js fix their bug, opened 4 years ago.

Fix this line, https://github.com/compulim/react-dictate-button/blob/master/packages/component/src/Composer.js#L139.

const results = [].map.call(rawResults, ([firstAlt]) => ({
  confidence: firstAlt.confidence,
  transcript: firstAlt.transcript
}));

To become:

const results = [].map.call(rawResults, alts => ({
  confidence: alts[0].confidence,
  transcript: alts[0].transcript
}));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions