Skip to content

Commit 6c82a06

Browse files
committed
fix: edge case in column history dialog
1 parent 8d3667b commit 6c82a06

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

testgen/ui/views/dialogs/column_history_dialog.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ def _column_history_dialog(
3939
ProfilingRun.profiling_starttime >= func.to_timestamp(add_date),
4040
)
4141
profiling_runs = [run.to_dict(json_safe=True) for run in profiling_runs]
42+
43+
if not profiling_runs:
44+
st.info("No profiling runs are available for this column. Run profiling first to see column history.")
45+
return
46+
47+
with loading_column:
48+
with st.spinner("Loading data ..."):
4249
run_id = st.session_state.get("column_history_dialog:run_id") or profiling_runs[0]["id"]
4350
selected_item = get_run_column(run_id, schema_name, table_name, column_name)
4451

0 commit comments

Comments
 (0)