diff --git a/plugins/activity-resources/src/components/doc-update-message/DocUpdateMessageContent.svelte b/plugins/activity-resources/src/components/doc-update-message/DocUpdateMessageContent.svelte
index 9646b93f38..810371cb0e 100644
--- a/plugins/activity-resources/src/components/doc-update-message/DocUpdateMessageContent.svelte
+++ b/plugins/activity-resources/src/components/doc-update-message/DocUpdateMessageContent.svelte
@@ -13,11 +13,8 @@
// limitations under the License.
-->
-
+
{#if hasDifferentActions}
diff --git a/plugins/activity-resources/src/components/doc-update-message/DocUpdateMessagePresenter.svelte b/plugins/activity-resources/src/components/doc-update-message/DocUpdateMessagePresenter.svelte
index f3f6de6b8b..98377461cb 100644
--- a/plugins/activity-resources/src/components/doc-update-message/DocUpdateMessagePresenter.svelte
+++ b/plugins/activity-resources/src/components/doc-update-message/DocUpdateMessagePresenter.svelte
@@ -27,6 +27,7 @@
import { createQuery, getClient } from '@hcengineering/presentation'
import { Component, ShowMore, Action } from '@hcengineering/ui'
import { AttributeModel } from '@hcengineering/view'
+ import { buildRemovedDoc, checkIsObjectRemoved } from '@hcengineering/view-resources'
import ActivityMessageTemplate from '../activity-message/ActivityMessageTemplate.svelte'
import DocUpdateMessageAttributes from './DocUpdateMessageAttributes.svelte'
@@ -34,7 +35,6 @@
import DocUpdateMessageHeader from './DocUpdateMessageHeader.svelte'
import { getAttributeModel, getCollectionAttribute } from '../../activityMessagesUtils'
- import { buildRemovedDoc, checkIsObjectRemoved } from '@hcengineering/view-resources'
export let value: DisplayDocUpdateMessage
export let showNotify: boolean = false
@@ -60,11 +60,14 @@
const objectQuery = createQuery()
const parentObjectQuery = createQuery()
- const collectionAttribute = getCollectionAttribute(hierarchy, value.attachedToClass, value.updateCollection)
- const clazz = hierarchy.getClass(value.objectClass)
- const objectName: IntlString | undefined =
- (collectionAttribute?.type as Collection
)?.itemLabel || clazz.label
- const collectionName = collectionAttribute?.label
+ let objectName: IntlString | undefined = undefined
+ let collectionName: IntlString | undefined = undefined
+
+ $: collectionAttribute = getCollectionAttribute(hierarchy, value.attachedToClass, value.updateCollection)
+ $: clazz = hierarchy.getClass(value.objectClass)
+
+ $: objectName = (collectionAttribute?.type as Collection)?.itemLabel || clazz.label
+ $: collectionName = collectionAttribute?.label
let user: PersonAccount | undefined = undefined
let person: Person | undefined = undefined
@@ -190,7 +193,13 @@
{:else if value.action === 'create' || value.action === 'remove'}
-
+
{:else if value.attributeUpdates && attributeModel}