Skip to content

Commit b10f51d

Browse files
committed
Remove hard-coded default mission
1 parent 4381b64 commit b10f51d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

app.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525

2626
server = app.server
2727

28+
# Set the default mission to the first mission in the list.
29+
all_missions = get_missions()
30+
default_mission = all_missions[0]['value']
31+
2832
# Define the layout of the app
2933
app.layout = html.Div(
3034
[
@@ -39,8 +43,8 @@
3943
),
4044
html.Hr(),
4145
dcc.Dropdown(
42-
options=get_missions(),
43-
value="Bering Sea June 2024",
46+
options=all_missions,
47+
value=default_mission,
4448
id="mission_dropdown",
4549
),
4650
html.Br(),

0 commit comments

Comments
 (0)