Skip to content

Commit

Permalink
fix: option.index(default)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhou committed Sep 5, 2024
1 parent 340f435 commit 003582e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/util/url_query_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def selectbox_wrapper_for_url_query(st_prefix, label, options, key, default, **k
if key in st.session_state
else options.index(st.query_params[key])
if key in st.query_params
else default
else options.index(default)
),
key=key,
**kwargs,
Expand Down

0 comments on commit 003582e

Please sign in to comment.