Process fixes (#9910)

This commit is contained in:
Denis Bykhov
2025-09-22 22:20:28 +07:00
committed by GitHub
parent 033a1ce537
commit b471d356b9
6 changed files with 93 additions and 54 deletions
@@ -29,6 +29,7 @@ import process, {
ContextId,
Execution,
Method,
parseContext,
Process,
ProcessContext,
ProcessToDo,
@@ -279,7 +280,7 @@ function getName (current: ProcessContext | undefined, method: Method<Doc>, acti
const nameField = method.createdContext?.nameField
if (nameField !== undefined) {
const name = action.params[nameField]
if (name !== undefined && typeof name === 'string' && name !== '') return name
if (name !== undefined && typeof name === 'string' && name !== '' && parseContext(name) === undefined) return name
}
return current?.name ?? ''
}