From 4fd4ec3776910c01ff199cfca10dbdd0047051cc Mon Sep 17 00:00:00 2001 From: jeylau <30733203+jeylau@users.noreply.github.com> Date: Fri, 5 Jun 2020 16:28:58 +0200 Subject: [PATCH 1/2] Quick patch missing bodypart --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 4cd171a..78f9d7c 100644 --- a/app.py +++ b/app.py @@ -144,7 +144,7 @@ def update_image(clickData, relayoutData, click_n, click_p, click_c, slider_val, elif 'autorange' in key: view.fig.update_xaxes(autorange=True) view.fig.update_yaxes(autorange='reversed') - n_bpt = view.options.index(option) + n_bpt = view.options.index(option) if option in view.options else 0 if button_id != 'slider' and 'relayout' not in event: n_bpt += 1 new_option = view.options[min(len(view.options) - 1, n_bpt)] From a2b122e394a70de0b0f3dcf8d93177224bfc8c62 Mon Sep 17 00:00:00 2001 From: jeylau <30733203+jeylau@users.noreply.github.com> Date: Fri, 5 Jun 2020 16:42:00 +0200 Subject: [PATCH 2/2] Fix empty ID --- view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view.py b/view.py index 6652ab3..e8c74e8 100644 --- a/view.py +++ b/view.py @@ -84,7 +84,7 @@ def make_layout(self): dcc.Input( id="input_name", type='text', - placeholder=self.username, + value=self.username, ), html.Button('Previous', id='previous'), html.Button('Next', id='next'),