aem-react-editable-components
aem-react-editable-components copied to clipboard
PageProps componentMapping property is required in type, however it is treated as optional inside the component
trafficstars
Describe the bug PageProps componentMapping property is required in type, however it is treated as optional inside the component. It causes TS errors working with the Page component (error TS2741: Property 'componentMapping' is missing in type)
Package version "2.1.1"
To Reproduce Steps to reproduce the behavior:
- Try to use Page component without componentMapping property and
- check it with tsc, for example
- See error: Property 'componentMapping' is missing in type
Expected behavior No error
Screenshots
Additional context Components are mapped with MapTo function, that's why componentMapping property is not used