www: fix loading of past transcript before the user is authenticated

This commit is contained in:
2023-10-24 20:23:10 +02:00
committed by Mathieu Virbel
parent 220b9811af
commit 93ba1b450c
5 changed files with 31 additions and 29 deletions

View File

@@ -19,8 +19,7 @@ const useWaveform = (api: DefaultApi, id: string): AudioWaveFormResponse => {
const { setError } = useError();
const getWaveform = (id: string) => {
if (!id)
throw new Error("Transcript ID is required to get transcript waveform");
if (!id) return;
setLoading(true);
const requestParameters: V1TranscriptGetAudioWaveformRequest = {