Fix playlist deletion
This commit is contained in:
parent
b056afe0ac
commit
60ea8f7a31
|
@ -233,7 +233,11 @@ export class VideoPlaylistService {
|
||||||
tap(() => {
|
tap(() => {
|
||||||
if (!videoId) return
|
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)
|
this.runPlaylistCheck(videoId)
|
||||||
}),
|
}),
|
||||||
catchError(err => this.restExtractor.handleError(err))
|
catchError(err => this.restExtractor.handleError(err))
|
||||||
|
|
Loading…
Reference in New Issue