Skip to content

Commit

Permalink
Fix the cannot delete last run issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zhe-slac committed Mar 15, 2024
1 parent 3be34bc commit 66be893
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/badger/gui/default/pages/home_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,10 @@ def go_run(self, i: int):

if i == -1:
update_table(self.run_table)
try:
self.current_routine.data = None # reset the data
except AttributeError: # current routine is None
pass
self.run_monitor.init_plots(self.current_routine)
if not self.current_routine:
self.routine_editor.clear()
Expand Down

0 comments on commit 66be893

Please sign in to comment.