From 60ea8f7a31121ed900620bd970d8b0284a4e1f32 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 17 Aug 2020 15:39:15 +0200 Subject: Fix playlist deletion --- .../src/app/shared/shared-video-playlist/video-playlist.service.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/src/app/shared/shared-video-playlist/video-playlist.service.ts b/client/src/app/shared/shared-video-playlist/video-playlist.service.ts index cc3d04b9e..5c7eed647 100644 --- a/client/src/app/shared/shared-video-playlist/video-playlist.service.ts +++ b/client/src/app/shared/shared-video-playlist/video-playlist.service.ts @@ -233,7 +233,11 @@ export class VideoPlaylistService { tap(() => { if (!videoId) return - this.videoExistsCache[videoId] = this.videoExistsCache[videoId].filter(e => e.playlistElementId !== playlistElementId) + if (this.videoExistsCache[videoId]) { + this.videoExistsCache[videoId] = this.videoExistsCache[videoId] + .filter(e => e.playlistElementId !== playlistElementId) + } + this.runPlaylistCheck(videoId) }), catchError(err => this.restExtractor.handleError(err)) -- cgit v1.2.3