mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 20:20:16 +09:00
fix: use current session id to trigger rerender
This commit is contained in:
parent
38fa3056df
commit
1d14a991ee
@ -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>;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user