bugfix:Dataform throwing error
This commit is contained in:
parent
af0ed48774
commit
ff2c2340e2
|
@ -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