From 6faa4b107bdef13e740ab016b51b709b4411be7a Mon Sep 17 00:00:00 2001 From: zxhlyh Date: Tue, 5 Aug 2025 16:31:14 +0800 Subject: [PATCH] fix: rag variable --- .../prompt-editor/plugins/workflow-variable-block/component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/base/prompt-editor/plugins/workflow-variable-block/component.tsx b/web/app/components/base/prompt-editor/plugins/workflow-variable-block/component.tsx index 1e4bc5b8a9..37971e1e2a 100644 --- a/web/app/components/base/prompt-editor/plugins/workflow-variable-block/component.tsx +++ b/web/app/components/base/prompt-editor/plugins/workflow-variable-block/component.tsx @@ -77,7 +77,7 @@ const WorkflowVariableBlockComponent = ({ variableValid = conversationVariables.some(v => v.variable === `${variables?.[0] ?? ''}.${variables?.[1] ?? ''}`) } else if (isRagVar) { - variableValid = !!node || (variables[0] === 'rag' && variables[1] === 'shared') + variableValid = variables[0] === 'rag' } else { variableValid = !!node