bugfix:Dataform throwing error

This commit is contained in:
Michael Shanks 2020-06-21 06:01:29 +01:00
parent e4c19bd9fd
commit f44f3ec375
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@
const json = await response.json()
store.update(state => {
state[model._id] = [...state[model], json]
state[model] = state[model] ? [...state[model], json] : [json]
return state
})
}