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 class name evaluated by short circuit #36

Conversation

haecheonlee
Copy link
Contributor

Steps to reproduce

  1. Add multiple tables
  2. Open DevTools
  3. Check the class name of the last table

Expected
The class name should not contain true

Actual
The class name contains true

Describe your changes

As the short-circuit evaluation is used inside backtick, it converts the boolean value to string when the expression is true. Instead, the ternary operation is used as a fix. When the condition is true, it will return an empty string.

Copy link

vercel bot commented Apr 12, 2024

@haecheonlee is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Apr 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drawdb ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 12, 2024 1:07am

@1ilit 1ilit merged commit 93b924a into drawdb-io:main Apr 12, 2024
4 checks passed
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