mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-10 18:12:35 +01:00
update readme, setup files, and clear convo bug
This commit is contained in:
parent
5ad32e211f
commit
a8eaf2452a
6 changed files with 28 additions and 17 deletions
|
|
@ -38,11 +38,14 @@ const currentSlice = createSlice({
|
|||
},
|
||||
removeConvo: (state, action) => {
|
||||
state.convos = state.convos.filter((convo) => convo.conversationId !== action.payload);
|
||||
},
|
||||
removeAll: (state) => {
|
||||
state.convos = [];
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
export const { setConversation, setConvos, setError, incrementPage, removeConvo } =
|
||||
export const { setConversation, setConvos, setError, incrementPage, removeConvo, removeAll } =
|
||||
currentSlice.actions;
|
||||
|
||||
export default currentSlice.reducer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue