Skip to content

Commit 7cf89b5

Browse files
authored
Merge pull request ChatGPTNextWeb#5812 from ConnectAI-E/fix/rerender-chat
fix: use current session id to trigger rerender
2 parents 459c373 + 1d14a99 commit 7cf89b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/chat.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2071,6 +2071,6 @@ function _Chat() {
20712071

20722072
export function Chat() {
20732073
const chatStore = useChatStore();
2074-
const sessionIndex = chatStore.currentSessionIndex;
2075-
return <_Chat key={sessionIndex}></_Chat>;
2074+
const session = chatStore.currentSession();
2075+
return <_Chat key={session.id}></_Chat>;
20762076
}

0 commit comments

Comments
 (0)