From e07d7ee4fca5b2b8be57cea2131fd21fa79d6634 Mon Sep 17 00:00:00 2001 From: AkaraChen Date: Thu, 26 Dec 2024 10:55:30 +0800 Subject: [PATCH] chore: remove console --- .../workflow/nodes/_base/components/agent-strategy-selector.tsx | 2 -- web/app/components/workflow/nodes/agent/use-config.ts | 1 - 2 files changed, 3 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx b/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx index 151e0db451..eca7fb30d8 100644 --- a/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx +++ b/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx @@ -76,7 +76,6 @@ export const AgentStrategySelector = (props: AgentStrategySelectorProps) => { const [query, setQuery] = useState('') const stra = useStrategyProviders() const list = stra.data ? formatStrategy(stra.data) : undefined - console.log('list', list, 'stra', stra) const filteredTools = useMemo(() => { if (!list) return [] return list.filter(tool => tool.name.toLowerCase().includes(query.toLowerCase())) @@ -125,7 +124,6 @@ export const AgentStrategySelector = (props: AgentStrategySelectorProps) => { agent_parameters: tool!.params, agent_strategy_label: tool!.tool_label, }) - console.log(tool, 'tool') setOpen(false) }} hasSearchText={false} diff --git a/web/app/components/workflow/nodes/agent/use-config.ts b/web/app/components/workflow/nodes/agent/use-config.ts index 721bea9188..e3fa786480 100644 --- a/web/app/components/workflow/nodes/agent/use-config.ts +++ b/web/app/components/workflow/nodes/agent/use-config.ts @@ -20,7 +20,6 @@ const useConfig = (id: string, payload: AgentNodeType) => { const currentStrategy = strategies.data?.declaration.strategies.find( str => str.identity.name === inputs.agent_strategy_name, ) - console.log('currentStrategy', currentStrategy, 'strategies', strategies, 'inputs', inputs) return { readOnly, inputs,