From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +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