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 688a6630dc..fa5f99dae5 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 @@ -73,16 +73,13 @@ const WorkflowVariableBlockComponent = ({ const isException = isExceptionVariable(varName, node?.type) let variableValid = true - if (isEnv) { - console.log('=============环境变量:', environmentVariables, variables) + if (isEnv) variableValid = environmentVariables.some(v => v.variable === `${variables?.[0] ?? ''}.${variables?.[1] ?? ''}`) - } - else if (isChatVar) { - console.log('=============会话变量:', conversationVariables, variables) + + else if (isChatVar) variableValid = conversationVariables.some(v => v.variable === `${variables?.[0] ?? ''}.${variables?.[1] ?? ''}`) - } - else { variableValid = !!node } + else variableValid = !!node const reactflow = useReactFlow() const store = useStoreApi()