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:
parent
72ccf2e7b0
commit
f64900b8b8
|
|
@ -1361,7 +1361,7 @@ const ChatMessage = ({ open, chatflowid, isAgentCanvas, isDialog, previews, setP
|
||||||
let isEnabled = false
|
let isEnabled = false
|
||||||
if (ttsConfig) {
|
if (ttsConfig) {
|
||||||
Object.keys(ttsConfig).forEach((provider) => {
|
Object.keys(ttsConfig).forEach((provider) => {
|
||||||
if (ttsConfig?.[provider]?.status) {
|
if (provider !== 'none' && ttsConfig?.[provider]?.status) {
|
||||||
isEnabled = true
|
isEnabled = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue