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: No results message not showing #5

Merged

Conversation

andres-rubio-go
Copy link

No description provided.

// 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) {
Copy link

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?

Copy link
Author

@andres-rubio-go andres-rubio-go Oct 5, 2023

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();
Copy link

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.

Copy link
Author

@andres-rubio-go andres-rubio-go Oct 5, 2023

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.

Copy link

@yesudeep yesudeep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AnnaSerova AnnaSerova merged commit dba5e34 into looker-open-source:master Oct 5, 2023
mendozamedina pushed a commit that referenced this pull request Dec 5, 2024
🤖 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).
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.

3 participants