mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-03-22 07:06:47 +00:00
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:
@@ -436,6 +436,7 @@ export const useWebSockets = (transcriptId: string | null): UseWebSockets => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
setStatus(message.data);
|
setStatus(message.data);
|
||||||
|
invalidateTranscript(queryClient, transcriptId as NonEmptyString);
|
||||||
if (message.data.value === "ended") {
|
if (message.data.value === "ended") {
|
||||||
ws.close();
|
ws.close();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user