mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-10-03 04:11:54 +02:00
fix: key warning
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user