-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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:
- Create a brand new react project using typescript template
- Create a functional component and call the useReport() hook to have the report and the setter
- Create a configuration object, of type Config
- Call the setter passing the Config object
- Run the app
Expected behavior
No exception for valid embed types.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working