Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: Search page search results are cleared after output #2677 (#2678)

balibabu2368d738ab4c
diff --git a/web/src/pages/search/hooks.ts b/web/src/pages/search/hooks.ts
index 0b4d5957b0..062067a3a0 100644
--- a/web/src/pages/search/hooks.ts
+++ b/web/src/pages/search/hooks.ts
@@ -94,9 +94,6 @@ export const useSendQuestion = (kbIds: string[]) => {
if (!isEmpty(answer)) {
setCurrentAnswer(answer);
}
- return () => {
- setCurrentAnswer({} as IAnswer);
- };
}, [answer]);
useEffect(() => {