From f44f3ec375e586cf1a3777cab05cca3e3fd75fca Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Sun, 21 Jun 2020 06:01:29 +0100 Subject: [PATCH] bugfix:Dataform throwing error --- packages/standard-components/src/DataForm.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/standard-components/src/DataForm.svelte b/packages/standard-components/src/DataForm.svelte index dc97c6971d..6188165aa7 100644 --- a/packages/standard-components/src/DataForm.svelte +++ b/packages/standard-components/src/DataForm.svelte @@ -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 }) }