mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 13:17:45 +02:00
Fix result input without result (#9937)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -576,9 +576,9 @@ export async function requestResult (
|
||||
results: UserResult[] | undefined,
|
||||
context: ExecutionContext
|
||||
): Promise<void> {
|
||||
if (results == null) return
|
||||
if (results == null || results.length === 0) return
|
||||
const promise = new Promise<void>((resolve, reject) => {
|
||||
showPopup(process.component.ResultInput, { results }, undefined, (res) => {
|
||||
showPopup(process.component.ResultInput, { results, context }, undefined, (res) => {
|
||||
if (res !== undefined) {
|
||||
for (const contextId in res) {
|
||||
const val = res[contextId]
|
||||
|
||||
Reference in New Issue
Block a user