fix: correct agent tools name when creating new agent (#1877)

This commit is contained in:
ananthakrishnan
2025-07-14 20:20:55 +05:30
parent ae1a6ef303
commit 3a351f67e6

View File

@@ -232,7 +232,7 @@ export default function NewAgent({ mode }: { mode: 'new' | 'edit' | 'draft' }) {
const data = await response.json();
const tools: OptionType[] = data.tools.map((tool: UserToolType) => ({
id: tool.id,
label: tool.displayName,
label: tool.customName,
icon: `/toolIcons/tool_${tool.name}.svg`,
}));
setUserTools(tools);