fix: invalidate transcript query on STATUS websocket event

Without this, the page never redirects to /processing when a reprocess
changes status from ended->processing, because the redirect logic only
watches the REST query data, not the WebSocket status state.
This commit is contained in:
Igor Loskutov
2026-02-09 14:22:53 -05:00
parent 4d9f5fa4b4
commit faec509a33

View File

@@ -436,6 +436,7 @@ export const useWebSockets = (transcriptId: string | null): UseWebSockets => {
);
}
setStatus(message.data);
invalidateTranscript(queryClient, transcriptId as NonEmptyString);
if (message.data.value === "ended") {
ws.close();
}