Skip to content

Commit

Permalink
fix: Search page search results are cleared after output infiniflow#2677
Browse files Browse the repository at this point in the history
  • Loading branch information
cike8899 committed Sep 30, 2024
1 parent 7a73fec commit 576eba5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions web/src/pages/search/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,6 @@ export const useSendQuestion = (kbIds: string[]) => {
if (!isEmpty(answer)) {
setCurrentAnswer(answer);
}
return () => {
setCurrentAnswer({} as IAnswer);
};
}, [answer]);

useEffect(() => {
Expand Down

0 comments on commit 576eba5

Please sign in to comment.