hj
This commit is contained in:
@@ -55,7 +55,10 @@ def suspend_live_progress():
|
||||
|
||||
def _is_selectable_table(table: Any) -> bool:
|
||||
"""Return True when a table can be used for @ selection."""
|
||||
return bool(table) and not getattr(table, "no_choice", False)
|
||||
# Avoid relying on truthiness for selectability.
|
||||
# `ResultTable` can be falsey when it has 0 rows, but `@` selection/filtering
|
||||
# should still be allowed when the backing `last_result_items` exist.
|
||||
return table is not None and not getattr(table, "no_choice", False)
|
||||
|
||||
|
||||
# Pipeline state container (prototype)
|
||||
|
||||
Reference in New Issue
Block a user