refactor: add missing keys to list items and improve structure in APIListMenu and MessageBubble components

This commit is contained in:
ecwu
2025-01-05 20:42:36 +08:00
parent 709cad3138
commit 0e1529a4d2
3 changed files with 10 additions and 3 deletions

View File

@@ -463,7 +463,7 @@ export default function ChatBOX() {
</ChatBubble>
)}
{chatStore.history.map((_, messageIndex) => (
<Message messageIndex={messageIndex} />
<Message messageIndex={messageIndex} key={messageIndex} />
))}
{showGenerating && (
<ChatBubble variant="received">