mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 22:15:04 +02:00
Fix card activity (#10393)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -22,7 +22,6 @@ export async function getCardSections (card: Card): Promise<CardSection[]> {
|
||||
const sections: CardSection[] = client
|
||||
.getModel()
|
||||
.findAllSync(cardPlugin.class.CardSection, {})
|
||||
.filter((it) => it._id !== communication.ids.CardMessagesSection)
|
||||
.sort((a, b) => a.order - b.order)
|
||||
|
||||
const res: CardSection[] = []
|
||||
@@ -69,14 +68,5 @@ export function getCardToc (sections: CardSection[], tocBySection: Record<string
|
||||
}
|
||||
}
|
||||
|
||||
if (getMetadata(communication.metadata.Enabled) === true) {
|
||||
newToc.push({
|
||||
id: communication.ids.CardMessagesSection,
|
||||
titleIntl: communication.string.Messages,
|
||||
level: 0,
|
||||
group: communication.ids.CardMessagesSection
|
||||
})
|
||||
}
|
||||
|
||||
return newToc
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user