Updated the condition for enabling TTS providers to exclude the 'none' provider, ensuring only valid providers are considered for text-to-speech functionality.

This commit is contained in:
Henry 2025-09-16 23:52:06 +01:00
parent 72ccf2e7b0
commit f64900b8b8
1 changed files with 1 additions and 1 deletions

View File

@ -1361,7 +1361,7 @@ const ChatMessage = ({ open, chatflowid, isAgentCanvas, isDialog, previews, setP
let isEnabled = false
if (ttsConfig) {
Object.keys(ttsConfig).forEach((provider) => {
if (ttsConfig?.[provider]?.status) {
if (provider !== 'none' && ttsConfig?.[provider]?.status) {
isEnabled = true
}
})