From 2368d738ab4cf5d98824164af47cddf673ea0044 Mon Sep 17 00:00:00 2001 From: balibabu Date: Mon, 30 Sep 2024 11:00:03 +0800 Subject: [PATCH] fix: Search page search results are cleared after output #2677 (#2678) ### What problem does this PR solve? fix: Search page search results are cleared after output #2677 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- web/src/pages/search/hooks.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/web/src/pages/search/hooks.ts b/web/src/pages/search/hooks.ts index 0b4d5957b..062067a3a 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(() => {