1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-10-03 12:21:52 +02:00

fix: key warning

This commit is contained in:
Arik Chakma
2025-03-28 03:05:45 +06:00
parent 27a08dba0f
commit ebfdaf3586

View File

@@ -9,6 +9,7 @@ import {
XIcon, XIcon,
} from 'lucide-react'; } from 'lucide-react';
import { import {
Fragment,
useCallback, useCallback,
useEffect, useEffect,
useMemo, useMemo,
@@ -241,9 +242,8 @@ export function AICourseLessonChat(props: AICourseLessonChatProps) {
<div className="flex flex-col justify-end gap-2 px-3 py-2"> <div className="flex flex-col justify-end gap-2 px-3 py-2">
{courseAIChatHistory.map((chat, index) => { {courseAIChatHistory.map((chat, index) => {
return ( return (
<> <Fragment key={`chat-${index}`}>
<AIChatCard <AIChatCard
key={`chat-${index}`}
role={chat.role} role={chat.role}
content={chat.content} content={chat.content}
html={chat.html} html={chat.html}
@@ -261,7 +261,7 @@ export function AICourseLessonChat(props: AICourseLessonChatProps) {
</div> </div>
</div> </div>
)} )}
</> </Fragment>
); );
})} })}