Fixed bug that prevented video playlists from being deleted

This commit is contained in:
Isaac Abadi
2020-09-27 05:05:45 -04:00
parent 3d2d4efb31
commit cdd2f78998

View File

@@ -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.', '');