Fix: Pass imported tracks to createPlaylist so CSV import works

This commit is contained in:
Julien Maille 2026-01-07 22:43:22 +01:00
parent 67a97a34a8
commit 350c720a7e

View file

@ -513,7 +513,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}
}
db.createPlaylist(name, [], '').then(async playlist => {
db.createPlaylist(name, tracks, '').then(async playlist => {
await handlePublicStatus(playlist);
// Update DB again with isPublic flag
await db.performTransaction('user_playlists', 'readwrite', (store) => store.put(playlist));