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/document-extractor/use-config.ts |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/app/components/workflow/nodes/document-extractor/use-config.ts b/app/components/workflow/nodes/document-extractor/use-config.ts
index 8ceb153..9d720d7 100644
--- a/app/components/workflow/nodes/document-extractor/use-config.ts
+++ b/app/components/workflow/nodes/document-extractor/use-config.ts
@@ -4,7 +4,7 @@
 
 import type { ValueSelector, Var } from '../../types'
 import { InputVarType, VarType } from '../../types'
-import type { DocExtractorNodeType } from './types'
+import { type DocExtractorNodeType } from './types'
 import useNodeCrud from '@/app/components/workflow/nodes/_base/hooks/use-node-crud'
 import useOneStepRun from '@/app/components/workflow/nodes/_base/hooks/use-one-step-run'
 import {
@@ -32,8 +32,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])
@@ -41,14 +39,14 @@
   const { getCurrentVariableType } = useWorkflowVariables()
   const getType = useCallback((variable?: ValueSelector) => {
     const varType = getCurrentVariableType({
-      parentNode: isInIteration ? iterationNode : loopNode,
+      parentNode: iterationNode,
       valueSelector: variable || [],
       availableNodes,
       isChatMode,
       isConstant: false,
     })
     return varType
-  }, [getCurrentVariableType, isInIteration, availableNodes, isChatMode, iterationNode, loopNode])
+  }, [getCurrentVariableType, availableNodes, isChatMode, iterationNode])
 
   const handleVarChanges = useCallback((variable: ValueSelector | string) => {
     const newInputs = produce(inputs, (draft) => {

--
Gitblit v1.8.0