diff --git a/frontend/src/conversation/Conversation.tsx b/frontend/src/conversation/Conversation.tsx index 12ebba66..6813ed0f 100644 --- a/frontend/src/conversation/Conversation.tsx +++ b/frontend/src/conversation/Conversation.tsx @@ -41,10 +41,9 @@ export default function Conversation() { useEffect(() => { return () => { - fetchStream.current.abort(); //abort previous stream + fetchStream.current && fetchStream.current.abort(); //abort previous stream } }, [conversationId]) - useEffect(() => { const observerCallback: IntersectionObserverCallback = (entries) => { entries.forEach((entry) => {