mirror of https://github.com/langgenius/dify.git
chore: remove console
This commit is contained in:
parent
5f13402c6e
commit
e07d7ee4fc
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue