hotfix(frontend): Prevent merging conversation events when switching between conversations (#8614)

This commit is contained in:
sp.wack
2025-05-21 19:12:04 +04:00
committed by GitHub
parent f1897b8095
commit 7305c8fb31

View File

@@ -261,6 +261,11 @@ export function WsClientProvider({
}, [conversationId]);
React.useEffect(() => {
// reset events when conversationId changes
setEvents([]);
setParsedEvents([]);
setStatus(WsClientProviderStatus.DISCONNECTED);
if (!conversationId) {
throw new Error("No conversation ID provided");
}