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(() => {