From 8462c79179aaf32085ac758a4b9c4e52f81defb4 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 20 Aug 2025 14:59:58 +0800 Subject: [PATCH] fix: can not use converstation vars in var aggregator node --- web/app/components/workflow/nodes/variable-assigner/hooks.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/app/components/workflow/nodes/variable-assigner/hooks.ts b/web/app/components/workflow/nodes/variable-assigner/hooks.ts index 0e5e10c741..d4e4115a78 100644 --- a/web/app/components/workflow/nodes/variable-assigner/hooks.ts +++ b/web/app/components/workflow/nodes/variable-assigner/hooks.ts @@ -132,7 +132,6 @@ export const useGetAvailableVars = () => { if (!currentNode) return [] - const beforeNodes = getBeforeNodesInSameBranchIncludeParent(nodeId) availableNodes.push(...beforeNodes) const parentNode = nodes.find(node => node.id === currentNode.parentId) @@ -143,7 +142,7 @@ export const useGetAvailableVars = () => { beforeNodes: uniqBy(availableNodes, 'id').filter(node => node.id !== nodeId), isChatMode, hideEnv, - hideChatVar: hideEnv, + hideChatVar: false, filterVar, }) .map(node => ({