Merge branch 'ChatGPTNextWeb:main' into main

This commit is contained in:
glay
2024-11-13 07:52:30 +08:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -2071,6 +2071,6 @@ function _Chat() {
export function Chat() {
const chatStore = useChatStore();
const sessionIndex = chatStore.currentSessionIndex;
return <_Chat key={sessionIndex}></_Chat>;
const session = chatStore.currentSession();
return <_Chat key={session.id}></_Chat>;
}