mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
www: ensure login waited before recording
if you refresh the record page, it does not work and return 404 because the transcript is accessed without token
This commit is contained in:
@@ -35,7 +35,7 @@ export default function TranscriptDetails(details: TranscriptDetails) {
|
||||
useEffect(() => {
|
||||
if (requireLogin && !isAuthenticated) return;
|
||||
setTranscriptId(details.params.transcriptId);
|
||||
}, [api]);
|
||||
}, [api, details.params.transcriptId, isAuthenticated]);
|
||||
|
||||
if (transcript?.error /** || topics?.error || waveform?.error **/) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user