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/if-else/use-is-var-file-attribute.ts | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/app/components/workflow/nodes/if-else/use-is-var-file-attribute.ts b/app/components/workflow/nodes/if-else/use-is-var-file-attribute.ts
index c0cf8cf..81552db 100644
--- a/app/components/workflow/nodes/if-else/use-is-var-file-attribute.ts
+++ b/app/components/workflow/nodes/if-else/use-is-var-file-attribute.ts
@@ -7,12 +7,10 @@
type Params = {
nodeId: string
isInIteration: boolean
- isInLoop: boolean
}
const useIsVarFileAttribute = ({
nodeId,
isInIteration,
- isInLoop,
}: Params) => {
const isChatMode = useIsChatMode()
const store = useStoreApi()
@@ -22,7 +20,6 @@
} = store.getState()
const currentNode = getNodes().find(n => n.id === nodeId)
const iterationNode = isInIteration ? getNodes().find(n => n.id === currentNode!.parentId) : null
- const loopNode = isInLoop ? getNodes().find(n => n.id === currentNode!.parentId) : null
const availableNodes = useMemo(() => {
return getBeforeNodesInSameBranch(nodeId)
}, [getBeforeNodesInSameBranch, nodeId])
@@ -32,7 +29,7 @@
return false
const parentVariable = variable.slice(0, 2)
const varType = getCurrentVariableType({
- parentNode: isInIteration ? iterationNode : loopNode,
+ parentNode: iterationNode,
valueSelector: parentVariable,
availableNodes,
isChatMode,
--
Gitblit v1.8.0