WhenFieldChanges trigger (#9913)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2025-09-23 00:01:24 +07:00
committed by GitHub
parent 9ae9453a52
commit e089e201f1
28 changed files with 447 additions and 67 deletions
+7
View File
@@ -1,4 +1,7 @@
import { Tx, TxUpdateDoc } from '@hcengineering/core/types/tx'
import { SelectedContext } from './types'
import core from '@hcengineering/core'
import { Card } from '@hcengineering/card'
export function parseContext (value: any): SelectedContext | undefined {
if (value === undefined) return
@@ -14,3 +17,7 @@ export function parseContext (value: any): SelectedContext | undefined {
return res
} catch {}
}
export function isUpdateTx (etx: Tx): etx is TxUpdateDoc<Card> {
return etx._class === core.class.TxUpdateDoc
}