Skip to content

Commit

Permalink
🐛 fix: fix clear session error (lobehub#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored Oct 11, 2023
1 parent ff2e59b commit 09512fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/session/slices/session/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { LobeAgentSession, LobeAgentSettings, LobeSessions } from '@/types/sessi
import { setNamespace } from '@/utils/storeDebug';
import { uuid } from '@/utils/uuid';

import { initLobeSession } from './initialState';
import { initInbox, initLobeSession } from './initialState';
import { SessionDispatch, sessionsReducer } from './reducers/session';

const t = setNamespace('session');
Expand Down Expand Up @@ -76,7 +76,7 @@ export const createSessionSlice: StateCreator<
},

clearSessions: () => {
set({ sessions: {} }, false, t('clearSessions'));
set({ inbox: initInbox, sessions: {} }, false, t('clearSessions'));
},

createSession: async (agent) => {
Expand Down

0 comments on commit 09512fc

Please sign in to comment.