mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-16 14:03:43 +08:00
fix: 解决会话列表按最新操作时间倒序排序,当前会话判断失败的bug
This commit is contained in:
@@ -150,7 +150,7 @@ const MergeStates: StateMerger = {
|
||||
|
||||
localState.currentSessionIndex = localState.sessions.findIndex(
|
||||
(session) => {
|
||||
return session && currentSession && session.id === session.id;
|
||||
return session && currentSession && session.id === currentSession.id;
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user