Skip to content

Commit e6ca71e

Browse files
committed
Minor fix
1 parent a2b122e commit e6ca71e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def update_image(clickData, relayoutData, click_n, click_p, click_c, slider_val,
144144
elif 'autorange' in key:
145145
view.fig.update_xaxes(autorange=True)
146146
view.fig.update_yaxes(autorange='reversed')
147-
n_bpt = view.options.index(option) if option in view.options else 0
147+
n_bpt = view.options.index(option)
148148
if button_id != 'slider' and 'relayout' not in event:
149149
n_bpt += 1
150150
new_option = view.options[min(len(view.options) - 1, n_bpt)]

0 commit comments

Comments
 (0)