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/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