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:
parent
9baa8ad5ba
commit
2cd14c9ddf
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user