bugfix:Dataform throwing error
This commit is contained in:
parent
e4c19bd9fd
commit
f44f3ec375
|
@ -32,7 +32,7 @@
|
||||||
const json = await response.json()
|
const json = await response.json()
|
||||||
|
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
state[model._id] = [...state[model], json]
|
state[model] = state[model] ? [...state[model], json] : [json]
|
||||||
return state
|
return state
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue