Fix playlist deletion from detail page not syncing to Firebase

This commit is contained in:
Julien Maille 2026-01-10 15:52:15 +01:00
parent 8ebbf91363
commit d71e8fd1dc

View file

@ -626,6 +626,7 @@ document.addEventListener('DOMContentLoaded', async () => {
const playlistId = window.location.hash.split('/')[1];
if (confirm('Are you sure you want to delete this playlist?')) {
db.deletePlaylist(playlistId).then(() => {
syncManager.syncUserPlaylist({ id: playlistId }, 'delete');
window.location.hash = '#library';
});
}