Skip to content

[BUG] Wrong Config property name in /lib/utils/config.js #429

@Lodeli

Description

@Lodeli

Describe the bug
The code at /lib/utils/config.js:136 is checking the property
var embedType = config.embedType;
With typescript in the Config interface the property is named 'type', so this check always returns undefined, leading to a "Wrong embed type" exception.

To Reproduce
Steps to reproduce the behavior:

  1. Create a brand new react project using typescript template
  2. Create a functional component and call the useReport() hook to have the report and the setter
  3. Create a configuration object, of type Config
  4. Call the setter passing the Config object
  5. Run the app

Expected behavior
No exception for valid embed types.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions