From 18fe8b609b1cac47603e0faeab35f5e9c0305f10 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Wed, 9 Feb 2022 16:06:37 +0700 Subject: [PATCH] Fix no collection editor case (#980) Signed-off-by: Andrey Sobolev --- .../src/components/EditDoc.svelte | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/plugins/view-resources/src/components/EditDoc.svelte b/plugins/view-resources/src/components/EditDoc.svelte index cd4015c7b7..6e1f8ad80d 100644 --- a/plugins/view-resources/src/components/EditDoc.svelte +++ b/plugins/view-resources/src/components/EditDoc.svelte @@ -284,17 +284,19 @@ {/if} {#each collectionEditors as collection, i} -
- -
+ {#if collection.editor} +
+ +
+ {/if} {/each} {/if}