From 34eca01800b38de064798f9b7fd2a6d38fd85b0a Mon Sep 17 00:00:00 2001 From: Timon Gurcke Date: Thu, 25 Jun 2020 12:50:13 +0200 Subject: [PATCH] Update dash_wrapper.py There was a missing 's' in line 629, wich leads to an error if you try to use dash States "for c in state:" --> "for c in state:" --- django_plotly_dash/dash_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_plotly_dash/dash_wrapper.py b/django_plotly_dash/dash_wrapper.py index 5425ce1e..db4202bd 100644 --- a/django_plotly_dash/dash_wrapper.py +++ b/django_plotly_dash/dash_wrapper.py @@ -626,7 +626,7 @@ def dispatch_with_args(self, body, argMap): da.update_current_state(c['id'], c['property'], v) for component_registration in self.callback_map[target_id]['state']: - for c in state: + for c in states: if c['property'] == component_registration['property'] and c['id'] == component_registration['id']: v = c.get('value', None) args.append(v)