Skip to content

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
proy30 committed Jan 23, 2025
1 parent d7667fe commit 9f5995c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/impactx/dashboard/Input/generalFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,14 +346,14 @@ def reset_inputs(input_section):
state.update(getattr(DashboardDefaults, input_section.upper()))

if input_section == "distribution_parameters":
state.dirty("selected_distribution_type")
state.dirty("distribution_type")
elif input_section == "lattice_configuration":
state.selected_lattice_list = []
elif input_section == "space_charge":
state.dirty("max_level")

elif input_section == "all":
state.update(DashboardDefaults.DEFAULT_VALUES)
state.dirty("selected_distribution_type")
state.dirty("distribution_type")
state.selected_lattice_list = []
state.dirty("max_level")

0 comments on commit 9f5995c

Please sign in to comment.