Skip to content

Commit

Permalink
fix: set current_run = new run when we save on submit
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko authored and devxpy committed Aug 29, 2024
1 parent 8c9aa77 commit a77a267
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions daras_ai_v2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,11 @@ def _render_publish_modal(
gui.error(str(e))
return

if self._has_current_run_changed(current_run):
sr = self._on_submit()
if sr:
current_run = sr

if is_update_mode:
updates = dict(
saved_run=current_run,
Expand Down

0 comments on commit a77a267

Please sign in to comment.