When working with the Calendar component, two errors occur:
- "Value must not be null" - appears when trying to add a layer
- "useMetadata must be used within a MetadataProvider" - appears when clicking Configure layer
To Reproduce
For Issue 1:
- Add a Calendar component to the page/form
- Go to its configuration/settings
- Click Add layer
- Observe the error: "Value must not be null"
For Issue 2:
- Add a Calendar component to the page/form
- Go to its configuration/settings
- Click Configure layer on an existing layer
- Observe the error: "useMetadata must be used within a MetadataProvider"
Expected behavior
Adding a layer should work without errors
Clicking Configure layer should open the configuration panel without errors
Screenshots

When working with the Calendar component, two errors occur:
To Reproduce
For Issue 1:
For Issue 2:
Expected behavior
Adding a layer should work without errors
Clicking Configure layer should open the configuration panel without errors
Screenshots