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
 (infiniflow#2678)

### What problem does this PR solve?

fix: Search page search results are cleared after output infiniflow#2677

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
cike8899 authored Sep 30, 2024
1 parent 36f1a8c commit 8073872
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 8073872

Please sign in to comment.