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

Fix: Early return if there are no queries to make #44

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

DHedgecock
Copy link
Member

What does this PR do?

Small fix to return early from the query hook if there are no queries to make. Fixes a minor bug where a new empty chart shows this projectName of undefined error:

Screenshot 2023-12-06 at 9 05 28 AM

How does this impact users?

When creating a new chart there is no longer a confusing error state.

What needed to change in the code and why?

Check if there are visible queries to make a request for, and if not return early.

@DHedgecock DHedgecock self-assigned this Dec 6, 2023
@DHedgecock DHedgecock merged commit db7d210 into main Dec 6, 2023
1 check passed
@DHedgecock DHedgecock deleted the fix-empty-query-state branch December 6, 2023 17:31
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.

2 participants