Skip to content

Commit

Permalink
Fix adding new variable without explicit title as column in GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Oct 17, 2024
1 parent 16dfe49 commit 9a31521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion damnit/gui/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ def handle_run_values_changed(self, proposal, run, values: dict):

def handle_variable_set(self, var_info: dict):
col_id = var_info['name']
title = var_info['title']
title = var_info['title'] or col_id

Check warning on line 617 in damnit/gui/table.py

View check run for this annotation

Codecov / codecov/patch

damnit/gui/table.py#L617

Added line #L617 was not covered by tests
try:
col_ix = self.find_column(col_id)
except KeyError:
Expand Down

0 comments on commit 9a31521

Please sign in to comment.