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