fix
Some checks are pending
Deploy Admin Panel / Deploy Admin Panel (push) Waiting to run
Deploy Admin Panel / Admin Panel Verification (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions

This commit is contained in:
Dmitry 2026-01-24 20:28:41 +03:00
parent 2b65fb00ee
commit 9521405ed9

View file

@ -35,7 +35,6 @@ export function CardVoicesManager({
const [showAddForm, setShowAddForm] = useState(false) const [showAddForm, setShowAddForm] = useState(false)
const [newAudio, setNewAudio] = useState<string | undefined>(undefined) const [newAudio, setNewAudio] = useState<string | undefined>(undefined)
const [newLanguage, setNewLanguage] = useState('es') const [newLanguage, setNewLanguage] = useState('es')
const [newInstructions, setNewInstructions] = useState('')
const [isGeneratingTTS, setIsGeneratingTTS] = useState(false) const [isGeneratingTTS, setIsGeneratingTTS] = useState(false)
// Dialog state for TTS generation // Dialog state for TTS generation
@ -84,7 +83,6 @@ export function CardVoicesManager({
setShowAddForm(false) setShowAddForm(false)
setNewAudio(undefined) setNewAudio(undefined)
setNewLanguage('es') setNewLanguage('es')
setNewInstructions('')
}, },
onError: (error: unknown) => { onError: (error: unknown) => {
console.error('❌ CardVoicesManager: addVoiceMutation.onError', error) console.error('❌ CardVoicesManager: addVoiceMutation.onError', error)
@ -260,7 +258,6 @@ export function CardVoicesManager({
setShowAddForm(false) setShowAddForm(false)
setNewAudio(undefined) setNewAudio(undefined)
setNewLanguage('es') setNewLanguage('es')
setNewInstructions('')
}} }}
disabled={disabled || addVoiceMutation.isPending} disabled={disabled || addVoiceMutation.isPending}
> >