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