From cdd2f78998e6445347da26ffe089afc881d3fea1 Mon Sep 17 00:00:00 2001 From: Isaac Abadi Date: Sun, 27 Sep 2020 05:05:45 -0400 Subject: [PATCH] Fixed bug that prevented video playlists from being deleted --- .../components/custom-playlists/custom-playlists.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/custom-playlists/custom-playlists.component.ts b/src/app/components/custom-playlists/custom-playlists.component.ts index f150f8a..d2d65d6 100644 --- a/src/app/components/custom-playlists/custom-playlists.component.ts +++ b/src/app/components/custom-playlists/custom-playlists.component.ts @@ -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.', '');