fix reatc warning

This commit is contained in:
phact 2025-10-24 04:28:40 -04:00
parent de413c880a
commit 5ccd745da1

View file

@ -1198,7 +1198,7 @@ function ChatPage() {
) : (
<>
{messages.map((message, index) => (
<>
<div key={`message-${index}-${message.timestamp?.getTime()}`}>
{message.role === "user" &&
(messages[index]?.content.match(FILES_REGEX)?.[0] ??
null) === null && (
@ -1244,7 +1244,7 @@ function ChatPage() {
/>
</div>
)}
</>
</div>
))}
{/* Streaming Message Display */}