-
Notifications
You must be signed in to change notification settings - Fork 9
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: No results message not showing #5
fix: No results message not showing #5
Conversation
// need to supply the container with something new if we fail early and | ||
// don't make it to the inteded render function. | ||
// https://looker.atlassian.net/browse/DX-5779 | ||
if (data.length < 1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the difference between data.length === 0 and data.length < 1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not much difference, I took some code from other vis that had a similar issue, so that stayed. But no difference at all in this case.
this.addError({ | ||
title: "No Results", | ||
}); | ||
done(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does "done()?" do. It appears to have been removed from the above code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Calling done() after adding the error is what caused the bug. Visualization would return but it would never add the error message so it wouldn't update or show.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
🤖 I have created a release *beep* *boop* --- ## 1.0.0 (2024-12-05) ### Features * Adds CI implementation ([#16](#16)) ([3e75a7b](3e75a7b)) ### Bug Fixes * No results message not showing ([#5](#5)) ([dba5e34](dba5e34)) * upgrades styled-components to remove @babel/traverse vulnerability ([#21](#21)) ([bc767cf](bc767cf)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
No description provided.