purge unused deps, comments

This commit is contained in:
ManishMadan2882
2024-03-14 04:03:17 +05:30
parent 52ecbab859
commit 79cf487ac5
3 changed files with 2 additions and 18 deletions

View File

@@ -316,12 +316,11 @@ export const DocsGPTWidget = ({
const lastChild = element?.children?.[element.children.length - 1]
lastChild && scrollToBottom(lastChild)
};
useEffect(() => {
!eventInterrupt && scrollToBottom(endMessageRef.current);
}, [queries.length, queries[queries.length - 1]?.response]);
/* useEffect(()=>{
setEventInterrupt(false)
},[status]) */
async function stream(question: string) {
setStatus('loading')
try {