diff --git a/plugins/view-resources/src/components/EditDoc.svelte b/plugins/view-resources/src/components/EditDoc.svelte index 977dadc509..d8fccb8d0e 100644 --- a/plugins/view-resources/src/components/EditDoc.svelte +++ b/plugins/view-resources/src/components/EditDoc.svelte @@ -76,6 +76,10 @@ query.unsubscribe() } + $: if (_class) { + mainEditor = undefined + } + let keys: KeyedAttribute[] = [] let fieldEditors: { key: KeyedAttribute; editor: AnyComponent; category: AttributeCategory }[] = []