fix(sonar): wrap backendVoiceId in arrow for map (javascript:S7727)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
mARTin-B78 2026-10-06 04:06:35 +02:00
parent 9baa8ad5ba
commit 2cd14c9ddf

View File

@ -417,7 +417,7 @@ $('s-import-voices-file')?.addEventListener('change', async function () {
const activeIds = await activeLibraryVoiceIds();
voices = voices.filter(v => activeIds.has(backendVoiceId(v)));
}
const ids = voices.map(backendVoiceId).filter(Boolean);
const ids = voices.map(v => backendVoiceId(v)).filter(Boolean);
if (window.VoicePicker) {
VoicePicker.upgrade('conv-tts-voice-select');
VoicePicker.populate('conv-tts-voice-select', ids);