[Docs] Fix json loads
This commit is contained in:
1 parent
aba4fcf0fa
commit
61a10f2885
1 file changed
+1
-1
@@ -149,5 +149,5 @@ function handleMessages(message) {
|
|||||||
```py
|
```py
|
||||||
def handleMessages(key, message):
|
def handleMessages(key, message):
|
||||||
if message.type === "DISPATCH" and message.payload.type === "JUMP_TO_STATE":
|
if message.type === "DISPATCH" and message.payload.type === "JUMP_TO_STATE":
|
||||||
store.setState(json.dumps(message.state));
|
store.setState(json.loads(message.state));
|
||||||
```
|
```
|
||||||
Reference in new issue
Block a user