Skip to content

Commit e0f761d

Browse files
committed
small cleanup before better annotation display management
1 parent bd2a271 commit e0f761d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/client/components/ChatV2/ChatV2.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export const ChatV2 = () => {
7373

7474
// RAG states
7575
const [ragIndexId, setRagIndexId] = useState<number | undefined>()
76-
const [ragDisplay, setRagDisplay] = useState<boolean>(true)
7776
const [activeFileSearchResult, setActiveFileSearchResult] = useState<FileSearchCompletedData | undefined>()
7877
const ragIndex = ragIndices?.find((index) => index.id === ragIndexId)
7978

@@ -179,17 +178,10 @@ export const ChatV2 = () => {
179178
}
180179
}
181180

182-
const handleRagDisplay = () => {
183-
setRagDisplay((prev) => !prev)
184-
}
185-
186181
const handleReset = () => {
187182
if (window.confirm('Are you sure you want to empty this conversation?')) {
188183
setMessages([])
189184
setPrevResponse({ id: '' })
190-
if (!ragDisplay) {
191-
handleRagDisplay()
192-
}
193185
if (fileInputRef.current) {
194186
fileInputRef.current.value = ''
195187
}

0 commit comments

Comments
 (0)