Skip to content

Commit

Permalink
ui: fix duplicate key issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyumat committed Nov 6, 2024
1 parent 9b35185 commit 7b0aea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/chat/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ export default function ChatPage() {
</div>
<ScrollArea className="flex-1">
{chats.map((chat) => (
<ChatItem key={chat.id} chat={chat} />
<ChatItem key={crypto.randomUUID()} chat={chat} />
))}
</ScrollArea>
</aside>
Expand Down

0 comments on commit 7b0aea1

Please sign in to comment.