Skip to content

Commit a94cae4

Browse files
committed
Fix gemini comments
1 parent cf11456 commit a94cae4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/agentflow/src/features/canvas/components/NodeToolIcons.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function parseToolArray(value: unknown): ToolEntry[] {
3838
return []
3939
}
4040

41-
function NodeToolIconsComponent({ inputs, nodeColor = '#000' }: NodeToolIconsProps) {
41+
function NodeToolIconsComponent({ inputs, nodeColor = '#4A90D9' }: NodeToolIconsProps) {
4242
const { apiBaseUrl } = useApiContext()
4343
const { isDarkMode } = useConfigContext()
4444

@@ -93,7 +93,7 @@ function NodeToolIconsComponent({ inputs, nodeColor = '#000' }: NodeToolIconsPro
9393
<Box
9494
key={`tool-${configIndex}-${toolIndex}-${propIndex}`}
9595
component='img'
96-
src={`${apiBaseUrl}/api/v1/node-icon/${toolName}`}
96+
src={`${apiBaseUrl}/api/v1/node-icon/${encodeURIComponent(toolName)}`}
9797
alt={toolName}
9898
sx={{
9999
width: 20,
@@ -181,7 +181,7 @@ function NodeToolIconsComponent({ inputs, nodeColor = '#000' }: NodeToolIconsPro
181181
<Box
182182
key={`tool-${configIndex}-${toolIndex}`}
183183
component='img'
184-
src={`${apiBaseUrl}/api/v1/node-icon/${toolName}`}
184+
src={`${apiBaseUrl}/api/v1/node-icon/${encodeURIComponent(toolName)}`}
185185
alt={toolName}
186186
sx={{
187187
width: 20,

0 commit comments

Comments
 (0)