Skip to content

Commit 4fd4ec3

Browse files
committed
Quick patch missing bodypart
1 parent d915c2c commit 4fd4ec3

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)
147+
n_bpt = view.options.index(option) if option in view.options else 0
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)