diff --git a/packages/presentation/src/components/AttributeBarEditor.svelte b/packages/presentation/src/components/AttributeBarEditor.svelte index 69d4b5b819..83f1c48d54 100644 --- a/packages/presentation/src/components/AttributeBarEditor.svelte +++ b/packages/presentation/src/components/AttributeBarEditor.svelte @@ -42,9 +42,11 @@ function onChange (value: any) { const doc = object as Doc + + dispatch('update', { key, value }) + if (draft) { ;(doc as any)[attributeKey] = value - dispatch('update', { key, value }) } else { updateAttribute(client, doc, doc._class, { key: attributeKey, attr: attribute }, value) }