-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
bool(DashTable) is always False #2906
Comments
The condition for components is based on it's dash/dash/development/base_component.py Lines 369 to 389 in 1cb7455
It only looks for the children prop to determine this and the DataTable doesn't have a |
Would it be reasonable to add an explicit |
Yeah it would be helpful |
bool(tb.data) it's not a direct replacement of bool(tb), as it might be None and raise None value exception |
Describe your context
Describe the bug
bool(DashTable) is always False. I can't use
tb or []
for shorthand when there is no dataExpected behavior
bool(tb) evaluates to True, either always or when there is data
Screenshots
The text was updated successfully, but these errors were encountered: