mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 05:55:09 +02:00
Fix attribute class in activity for arrays (#7983)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -16,7 +16,8 @@ import {
|
||||
TxMixin,
|
||||
TxProcessor,
|
||||
TxUpdateDoc,
|
||||
combineAttributes
|
||||
combineAttributes,
|
||||
ArrOf
|
||||
} from '@hcengineering/core'
|
||||
import core from '@hcengineering/core/src/component'
|
||||
import notification from '@hcengineering/notification'
|
||||
@@ -267,6 +268,8 @@ export async function getTxAttributesUpdates (
|
||||
|
||||
if (clazz !== undefined && 'to' in clazz.type) {
|
||||
attrClass = clazz.type.to as Ref<Class<Doc>>
|
||||
} else if (clazz !== undefined && hierarchy.isDerived(clazz.type._class, core.class.ArrOf)) {
|
||||
attrClass = (clazz.type as ArrOf<Doc>).of._class
|
||||
} else if (clazz !== undefined && 'of' in clazz?.type) {
|
||||
attrClass = (clazz.type.of as RefTo<Doc>).to
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user