File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ export const useChatStore = createPersistStore(
345
345
new Date ( b . lastUpdate ) . getTime ( ) - new Date ( a . lastUpdate ) . getTime ( ) ,
346
346
) ;
347
347
const currentSessionIndex = sessions . findIndex ( ( session ) => {
348
- return session && currentSession && session . id === session . id ;
348
+ return session && currentSession && session . id === currentSession . id ;
349
349
} ) ;
350
350
351
351
set ( ( state ) => ( {
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ const MergeStates: StateMerger = {
150
150
151
151
localState . currentSessionIndex = localState . sessions . findIndex (
152
152
( session ) => {
153
- return session && currentSession && session . id === session . id ;
153
+ return session && currentSession && session . id === currentSession . id ;
154
154
} ,
155
155
) ;
156
156
You can’t perform that action at this time.
0 commit comments