From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/workflow/nodes/list-operator/use-config.ts | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/components/workflow/nodes/list-operator/use-config.ts b/app/components/workflow/nodes/list-operator/use-config.ts index efbf32b..00defe7 100644 --- a/app/components/workflow/nodes/list-operator/use-config.ts +++ b/app/components/workflow/nodes/list-operator/use-config.ts @@ -27,8 +27,6 @@ const currentNode = getNodes().find(n => n.id === id) const isInIteration = payload.isInIteration const iterationNode = isInIteration ? getNodes().find(n => n.id === currentNode!.parentId) : null - const isInLoop = payload.isInLoop - const loopNode = isInLoop ? getNodes().find(n => n.id === currentNode!.parentId) : null const availableNodes = useMemo(() => { return getBeforeNodesInSameBranch(id) }, [getBeforeNodesInSameBranch, id]) @@ -38,7 +36,7 @@ const { getCurrentVariableType } = useWorkflowVariables() const getType = useCallback((variable?: ValueSelector) => { const varType = getCurrentVariableType({ - parentNode: isInIteration ? iterationNode : loopNode, + parentNode: iterationNode, valueSelector: variable || inputs.variable || [], availableNodes, isChatMode, @@ -62,7 +60,7 @@ itemVarType = varType } return { varType, itemVarType } - }, [availableNodes, getCurrentVariableType, inputs.variable, isChatMode, isInIteration, iterationNode, loopNode]) + }, [availableNodes, getCurrentVariableType, inputs.variable, isChatMode, iterationNode]) const { varType, itemVarType } = getType() -- Gitblit v1.8.0