Fix playlist deletion from detail page not syncing to Firebase
This commit is contained in:
parent
8ebbf91363
commit
d71e8fd1dc
1 changed files with 1 additions and 0 deletions
|
|
@ -626,6 +626,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
const playlistId = window.location.hash.split('/')[1];
|
const playlistId = window.location.hash.split('/')[1];
|
||||||
if (confirm('Are you sure you want to delete this playlist?')) {
|
if (confirm('Are you sure you want to delete this playlist?')) {
|
||||||
db.deletePlaylist(playlistId).then(() => {
|
db.deletePlaylist(playlistId).then(() => {
|
||||||
|
syncManager.syncUserPlaylist({ id: playlistId }, 'delete');
|
||||||
window.location.hash = '#library';
|
window.location.hash = '#library';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue