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)
This commit is contained in:
balibabu 2024-09-30 11:00:03 +08:00 committed by GitHub
parent 833e3a08cd
commit 2368d738ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,9 +94,6 @@ export const useSendQuestion = (kbIds: string[]) => {
if (!isEmpty(answer)) {
setCurrentAnswer(answer);
}
return () => {
setCurrentAnswer({} as IAnswer);
};
}, [answer]);
useEffect(() => {