mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
Fix no collection editor case (#980)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
5006801e77
commit
18fe8b609b
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user