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