aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-17 15:39:15 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-19 11:30:21 +0200
commit60ea8f7a31121ed900620bd970d8b0284a4e1f32 (patch)
tree679e1a32662fe2c098956116b0ee361993ef0eb6 /client/src
parentb056afe0ac48a360e47481327d341198d4e9d391 (diff)
downloadPeerTube-60ea8f7a31121ed900620bd970d8b0284a4e1f32.tar.gz
PeerTube-60ea8f7a31121ed900620bd970d8b0284a4e1f32.tar.zst
PeerTube-60ea8f7a31121ed900620bd970d8b0284a4e1f32.zip
Fix playlist deletion
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/shared/shared-video-playlist/video-playlist.service.ts6
1 files changed, 5 insertions, 1 deletions
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 {
233 tap(() => { 233 tap(() => {
234 if (!videoId) return 234 if (!videoId) return
235 235
236 this.videoExistsCache[videoId] = this.videoExistsCache[videoId].filter(e => e.playlistElementId !== playlistElementId) 236 if (this.videoExistsCache[videoId]) {
237 this.videoExistsCache[videoId] = this.videoExistsCache[videoId]
238 .filter(e => e.playlistElementId !== playlistElementId)
239 }
240
237 this.runPlaylistCheck(videoId) 241 this.runPlaylistCheck(videoId)
238 }), 242 }),
239 catchError(err => this.restExtractor.handleError(err)) 243 catchError(err => this.restExtractor.handleError(err))