diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/shared/shared-video-playlist/video-playlist.service.ts | 6 |
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)) |