Skip to content

Commit

Permalink
check if state is None before attempting to set_global_data()
Browse files Browse the repository at this point in the history
  • Loading branch information
crosenth committed Jul 19, 2023
1 parent 282ebe5 commit 5ba555c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dash/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ def update_genus_options(state):
[State('text-input', 'value'),
State('state', 'data')])
def update_genus_value(search, n_clicks, text, state):
set_global_data()
if state is None:
set_global_data()
request, data = parse_search_input(df, state, search, n_clicks, text)
if request is None:
value = DEFAULT_GENUS
Expand Down

0 comments on commit 5ba555c

Please sign in to comment.