From 121dc7134822578d70fd6e5e4451c7000031338d Mon Sep 17 00:00:00 2001 From: sebastianbuzdugan Date: Sun, 17 Nov 2024 18:44:21 +0200 Subject: [PATCH] fix: handle null speech URLs with fallback to empty string to resolve TS error --- app/frontend/src/components/Answer/SpeechOutputAzure.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/frontend/src/components/Answer/SpeechOutputAzure.tsx b/app/frontend/src/components/Answer/SpeechOutputAzure.tsx index 2dabcb028a..ea181df295 100644 --- a/app/frontend/src/components/Answer/SpeechOutputAzure.tsx +++ b/app/frontend/src/components/Answer/SpeechOutputAzure.tsx @@ -44,7 +44,7 @@ export const SpeechOutputAzure = ({ answer, speechConfig, index, isStreaming }: return; } if (speechConfig.speechUrls[index]) { - playAudio(speechConfig.speechUrls[index]); + playAudio(speechConfig.speechUrls[index] ?? ""); return; } setIsLoading(true);