Skip to content

Commit 9a3c8b7

Browse files
committed
fix: add key
1 parent 452c261 commit 9a3c8b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Chat/ChatInterface.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ export function ChatInterface({
521521

522522
if (part.type === 'dynamic-tool') {
523523
return (
524-
<Tool defaultOpen={true}>
524+
<Tool defaultOpen={true} key={`${message.id}-${index}`}>
525525
<ToolHeader type={`tool-${part.toolName}`} state={part.state} />
526526
<ToolContent>
527527
<ToolInput input={part.input} />

0 commit comments

Comments
 (0)