mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 05:55:09 +02:00
WhenFieldChanges trigger (#9913)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user