mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-21 20:20:57 +03:00
Fixed bug that prevented video playlists from being deleted
This commit is contained in:
@@ -83,7 +83,7 @@ export class CustomPlaylistsComponent implements OnInit {
|
||||
const playlist = args.file;
|
||||
const index = args.index;
|
||||
const playlistID = playlist.id;
|
||||
this.postsService.removePlaylist(playlistID, 'audio').subscribe(res => {
|
||||
this.postsService.removePlaylist(playlistID, playlist.type).subscribe(res => {
|
||||
if (res['success']) {
|
||||
this.playlists.splice(index, 1);
|
||||
this.postsService.openSnackBar('Playlist successfully removed.', '');
|
||||
|
||||
Reference in New Issue
Block a user