Skip to content

Commit

Permalink
fixed react key
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkShawn2020 committed Jul 14, 2023
1 parent 91cb7aa commit 3f8b14f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import React, {
useEffect,
useMemo,
useCallback,
Fragment,
} from "react";

import SendWhiteIcon from "../icons/send-white.svg";
Expand Down Expand Up @@ -975,9 +976,8 @@ export function Chat() {
const shouldShowClearContextDivider = i === clearContextIndex - 1;

return (
<>
<Fragment key={i}>
<div
key={i}
className={
isUser ? styles["chat-message-user"] : styles["chat-message"]
}
Expand Down Expand Up @@ -1082,7 +1082,7 @@ export function Chat() {
</div>
</div>
{shouldShowClearContextDivider && <ClearContextDivider />}
</>
</Fragment>
);
})}
</div>
Expand Down

0 comments on commit 3f8b14f

Please sign in to comment.