Skip to content

Commit 121dc71

Browse files
committed
fix: handle null speech URLs with fallback to empty string to resolve TS error
1 parent 9b4dfae commit 121dc71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/frontend/src/components/Answer/SpeechOutputAzure.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const SpeechOutputAzure = ({ answer, speechConfig, index, isStreaming }:
4444
return;
4545
}
4646
if (speechConfig.speechUrls[index]) {
47-
playAudio(speechConfig.speechUrls[index]);
47+
playAudio(speechConfig.speechUrls[index] ?? "");
4848
return;
4949
}
5050
setIsLoading(true);

0 commit comments

Comments
 (0)