Skip to content

Commit 62aa326

Browse files
Update dash_wrapper.py (#257)
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:"
1 parent 17a2a67 commit 62aa326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_plotly_dash/dash_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ def dispatch_with_args(self, body, argMap):
626626
da.update_current_state(c['id'], c['property'], v)
627627

628628
for component_registration in self.callback_map[target_id]['state']:
629-
for c in state:
629+
for c in states:
630630
if c['property'] == component_registration['property'] and c['id'] == component_registration['id']:
631631
v = c.get('value', None)
632632
args.append(v)

0 commit comments

Comments
 (0)