Fix playlist deletion

pull/3108/head
Chocobozzz 2020-08-17 15:39:15 +02:00 committed by Chocobozzz
parent b056afe0ac
commit 60ea8f7a31
1 changed files with 5 additions and 1 deletions

View File

@ -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))