From 34ae11cb052c4a031d2b7a9fe23f7ba3e88a53ec Mon Sep 17 00:00:00 2001 From: dongfubao Date: Mon, 26 May 2025 14:46:34 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A#19783,#19806,#19829,#19981?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/app/components/workflow/hooks/use-checklist.ts | 1 - web/app/components/workflow/utils/workflow.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/web/app/components/workflow/hooks/use-checklist.ts b/web/app/components/workflow/hooks/use-checklist.ts index 4b0fcca192..ebef0e0c2c 100644 --- a/web/app/components/workflow/hooks/use-checklist.ts +++ b/web/app/components/workflow/hooks/use-checklist.ts @@ -120,7 +120,6 @@ export const useChecklist = (nodes: Node[], edges: Edge[]) => { varErrorMessage: [], }) } - errMessageMap.set(node.id, list[list.length - 1]) if (nodesExtraData[node.data.type as BlockEnum].checkVarValid) { const { errorMessage: varErrorMessages } = nodesExtraData[node.data.type as BlockEnum].checkVarValid(node.data, { ...allVariablesMap, ...node._parentOutputVarMap }, t) diff --git a/web/app/components/workflow/utils/workflow.ts b/web/app/components/workflow/utils/workflow.ts index 739908646a..d9d6dad988 100644 --- a/web/app/components/workflow/utils/workflow.ts +++ b/web/app/components/workflow/utils/workflow.ts @@ -135,7 +135,7 @@ export const getValidTreeNodes = (nodes: Node[], edges: Edge[], isCollectVar?: b varMap[newPath] = item getParentOutputVarMap(item, newPath, varMap) }) - outgoer._parentOutputVarMap = { ...(root._parentOutputVarMap ?? {}), ...varMap } + outgoer._parentOutputVarMap = { ...(root._parentOutputVarMap ?? {}), ...(outgoer._parentOutputVarMap ?? {}), ...varMap } } if (outgoer.data.type === BlockEnum.Iteration) @@ -388,7 +388,7 @@ export const getNotExistVariablesByArray = (array: string[][], varMap: Record { - if (!item.length) + if (!item.length || !Array.isArray(item)) return if (['sys'].includes(item[0])) return