diff --git a/lightsync/frontend/app.js b/lightsync/frontend/app.js index 49579f4..d51030d 100644 --- a/lightsync/frontend/app.js +++ b/lightsync/frontend/app.js @@ -272,19 +272,8 @@ document.getElementById('audio-upload')?.addEventListener('change', async (e) => if (beats && beats.beats) { beatTimestamps = beats.beats; } - await refreshFileList(`/shows/${path.split('/').pop()}`); - // Auto-select and load the just-uploaded file - const sel = document.getElementById('audio-select'); - const serverPath = `/shows/${path.split('/').pop()}`; - if (sel) { - // find matching option and select it - for (const opt of sel.options) { - if (opt.value === serverPath || opt.value === path) { - opt.selected = true; - break; - } - } - } + // Options use /app/shows/filename as value — pass abs path to pre-select + await refreshFileList(path); loadSelectedFile(path); } catch (err) { console.error('[audio] upload error:', err);