Fix fieldChangesCheck (#10550)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2026-02-25 01:04:07 +05:00
committed by GitHub
parent 2dd45f56a0
commit c15060afb0
3 changed files with 15 additions and 8 deletions
@@ -20,6 +20,7 @@ import core, {
Class,
Data,
Doc,
DocumentUpdate,
fillDefaults,
findProperty,
generateId,
@@ -169,9 +170,9 @@ export function FieldChangedCheck (
const process = control.client.getModel().findObject(execution.process)
if (process === undefined) return false
if (context.operations === undefined) return false
const changedFields = Object.keys(context.operations)
const operations = context.operations as DocumentUpdate<Doc>
const target = Object.keys(params)[0]
if (!changedFields.includes(target)) return false
if (!TxProcessor.hasUpdate(operations, target)) return false
const res = matchQuery([context.card], params, process.masterTag, control.client.getHierarchy(), true)
return res.length > 0
}