mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
Fixing types
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {
|
||||
PayloadAction,
|
||||
createListenerMiddleware,
|
||||
createSlice,
|
||||
isAnyOf,
|
||||
@@ -34,7 +35,7 @@ const initialState: Preference = {
|
||||
} as Doc,
|
||||
sourceDocs: null,
|
||||
conversations: null,
|
||||
modalState: 'ACTIVE',
|
||||
modalState: 'INACTIVE',
|
||||
};
|
||||
|
||||
export const prefSlice = createSlice({
|
||||
@@ -59,7 +60,7 @@ export const prefSlice = createSlice({
|
||||
setChunks: (state, action) => {
|
||||
state.chunks = action.payload;
|
||||
},
|
||||
setModalStateDeleteConv: (state, action) => {
|
||||
setModalStateDeleteConv: (state, action: PayloadAction<ActiveState>) => {
|
||||
state.modalState = action.payload;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user