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: use ?? instead of || for skeleton in AppCard.tsx #833

Merged

Conversation

spaenleh
Copy link
Member

@spaenleh spaenleh commented Oct 16, 2023

This should fix the issue of the description staying in "loading" mode when it is an empty string.
With ?? it will only show the skeleton when the data is not yet available.

Example below, the apps have loaded but the description of Task Management and Text Input are simply "" so they show the Skeleton even if they are loaded:
Screenshot 2023-10-16 at 21 34 46

@spaenleh spaenleh linked an issue Oct 16, 2023 that may be closed by this pull request
@spaenleh spaenleh requested review from LinaYahya and ReidyT October 16, 2023 19:34
@spaenleh spaenleh self-assigned this Oct 16, 2023
@spaenleh spaenleh added bug 🪲 Something isn't working ui 👀 labels Oct 16, 2023
Copy link
Contributor

@ReidyT ReidyT left a comment

Choose a reason for hiding this comment

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

Everything looks good :)

@spaenleh spaenleh merged commit 356ef76 into main Oct 17, 2023
3 checks passed
@spaenleh spaenleh deleted the 831-use-nullish-coalescing-operator-in-appcard-for-skeleton branch October 20, 2023 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working v1.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use nullish coalescing operator in AppCard for skeleton
3 participants