Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Db types fix #89

Merged
merged 3 commits into from
Feb 2, 2024
Merged

Db types fix #89

merged 3 commits into from
Feb 2, 2024

Conversation

shelldandy
Copy link
Contributor

@shelldandy shelldandy commented Feb 2, 2024

The DB.labels prop is marked as required even though the actual component that uses it marks it as optional:

https://github.com/grafana/plugin-ui/blob/main/src/components/QueryEditor/QueryHeader.tsx#L46

This PR makes the key optional while also providing better type check for the expected map shape from QueryHeader:

https://github.com/grafana/plugin-ui/blob/main/src/components/QueryEditor/QueryHeader.tsx#L214

@shelldandy shelldandy self-assigned this Feb 2, 2024
@shelldandy shelldandy merged commit 1eb40cf into main Feb 2, 2024
1 check passed
@shelldandy shelldandy deleted the db-types-fix branch February 2, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants