Skip to content

Commit 39d44e1

Browse files
committed
always reset fileSearchResult to null instead of undefined
1 parent 748d609 commit 39d44e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/components/ChatV2/ChatV2.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export const ChatV2 = () => {
142142
setMessage({ content: '' })
143143
setPrevResponse({ id: '' })
144144
setCompletion('')
145-
setFileSearchResult(undefined)
145+
setFileSearchResult(null)
146146
setStreamController(new AbortController())
147147
setRetryTimeout(() => {
148148
if (streamController) {

0 commit comments

Comments
 (0)