diff --git a/src/components/chat/tools/configs/toolConfigs.ts b/src/components/chat/tools/configs/toolConfigs.ts index 39934b4..3bb4219 100644 --- a/src/components/chat/tools/configs/toolConfigs.ts +++ b/src/components/chat/tools/configs/toolConfigs.ts @@ -343,7 +343,7 @@ export const TOOL_CONFIGS: Record = { title: 'Task list', contentType: 'task', getContentProps: (result) => ({ - content: String(result.content || '') + content: String(result?.content || '') }) } }, @@ -366,7 +366,7 @@ export const TOOL_CONFIGS: Record = { title: 'Task details', contentType: 'task', getContentProps: (result) => ({ - content: String(result.content || '') + content: String(result?.content || '') }) } }, @@ -535,7 +535,7 @@ export const TOOL_CONFIGS: Record = { type: 'collapsible', contentType: 'text', getContentProps: (result) => ({ - content: String(result.content || ''), + content: String(result?.content || ''), format: 'plain' }) }