Fix no collection editor case (#980)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2022-02-09 16:06:37 +07:00 committed by GitHub
parent 5006801e77
commit 18fe8b609b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -284,17 +284,19 @@
</div>
{/if}
{#each collectionEditors as collection, i}
<div class="mt-14">
<Component
is={collection.editor}
props={{
objectId: object._id,
_class: object._class,
space: object.space,
[collection.key.key]: getCollectionCounter(object, collection.key)
}}
/>
</div>
{#if collection.editor}
<div class="mt-14">
<Component
is={collection.editor}
props={{
objectId: object._id,
_class: object._class,
space: object.space,
[collection.key.key]: getCollectionCounter(object, collection.key)
}}
/>
</div>
{/if}
{/each}
</Panel>
{/if}