mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix playlist deletion
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user