mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 09:03:15 +00:00
enhancement: added loading state for conversation
This commit is contained in:
@@ -15,7 +15,10 @@ export interface Preference {
|
||||
token_limit: number;
|
||||
selectedDocs: Doc | null;
|
||||
sourceDocs: Doc[] | null;
|
||||
conversations: { name: string; id: string }[] | null;
|
||||
conversations: {
|
||||
data: { name: string; id: string }[] | null;
|
||||
loading: boolean;
|
||||
};
|
||||
modalState: ActiveState;
|
||||
}
|
||||
|
||||
@@ -34,7 +37,10 @@ const initialState: Preference = {
|
||||
retriever: 'classic',
|
||||
} as Doc,
|
||||
sourceDocs: null,
|
||||
conversations: null,
|
||||
conversations: {
|
||||
data: null,
|
||||
loading: false,
|
||||
},
|
||||
modalState: 'INACTIVE',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user