mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-15 15:08:10 +01:00
feat: simple api call to enable search
This commit is contained in:
parent
1041146fcb
commit
97a6cd801b
6 changed files with 50 additions and 38 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { createSlice } from '@reduxjs/toolkit';
|
||||
|
||||
const initialState = {
|
||||
searchEnabled: false,
|
||||
search: false,
|
||||
query: '',
|
||||
};
|
||||
|
|
@ -10,7 +11,7 @@ const currentSlice = createSlice({
|
|||
initialState,
|
||||
reducers: {
|
||||
setSearchState: (state, action) => {
|
||||
state.search = action.payload;
|
||||
state.searchEnabled = action.payload;
|
||||
},
|
||||
setQuery: (state, action) => {
|
||||
const q = action.payload;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue