Fix description diff and collections presenters (#4240)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2023-12-22 00:05:32 +07:00
committed by GitHub
parent ba49e4d66e
commit 396160a27c
7 changed files with 40 additions and 25 deletions
@@ -14,10 +14,12 @@
-->
<script lang="ts">
import { Component } from '@hcengineering/ui'
import view, { AttributeModel } from '@hcengineering/view'
import { AttributeModel } from '@hcengineering/view'
import { getClient } from '@hcengineering/presentation'
import { DocAttributeUpdates, DocUpdateMessageViewlet } from '@hcengineering/activity'
import activity from '../../plugin'
import AddedAttributesPresenter from './attributes/AddedAttributesPresenter.svelte'
import RemovedAttributesPresenter from './attributes/RemovedAttributesPresenter.svelte'
import SetAttributesPresenter from './attributes/SetAttributesPresenter.svelte'
@@ -31,7 +33,8 @@
$: presenter =
viewlet?.config?.[attributeModel.key]?.presenter ??
hierarchy.classHierarchyMixin(attributeUpdates.attrClass, view.mixin.ActivityAttributePresenter)?.presenter
hierarchy.classHierarchyMixin(attributeUpdates.attrClass, activity.mixin.ActivityAttributeUpdatesPresenter)
?.presenter
</script>
{#if presenter}