Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhou committed Oct 25, 2023
1 parent c07c36c commit 229e2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/util/selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def select_para(multi=True,
else:
para_name = col.selectbox(label,
[para_name_mapper[p] for p in available_paras],
available_paras.index(default_paras),
available_paras.index(default_paras) if default_paras in available_paras else 0,
key=f'para_name{suffix}'
)
return para_name, [p for p in para_name_mapper if para_name_mapper[p] == para_name][0]
Expand Down

0 comments on commit 229e2a2

Please sign in to comment.