File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
src/client/components/ChatV2 Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ export const ChatV2 = () => {
73
73
74
74
// RAG states
75
75
const [ ragIndexId , setRagIndexId ] = useState < number | undefined > ( )
76
- const [ ragDisplay , setRagDisplay ] = useState < boolean > ( true )
77
76
const [ activeFileSearchResult , setActiveFileSearchResult ] = useState < FileSearchCompletedData | undefined > ( )
78
77
const ragIndex = ragIndices ?. find ( ( index ) => index . id === ragIndexId )
79
78
@@ -179,17 +178,10 @@ export const ChatV2 = () => {
179
178
}
180
179
}
181
180
182
- const handleRagDisplay = ( ) => {
183
- setRagDisplay ( ( prev ) => ! prev )
184
- }
185
-
186
181
const handleReset = ( ) => {
187
182
if ( window . confirm ( 'Are you sure you want to empty this conversation?' ) ) {
188
183
setMessages ( [ ] )
189
184
setPrevResponse ( { id : '' } )
190
- if ( ! ragDisplay ) {
191
- handleRagDisplay ( )
192
- }
193
185
if ( fileInputRef . current ) {
194
186
fileInputRef . current . value = ''
195
187
}
You can’t perform that action at this time.
0 commit comments