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 5c7eed647..dc1b56129 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 @@ -215,10 +215,13 @@ export class VideoPlaylistService { map(this.restExtractor.extractDataBool), tap(() => { const existsResult = this.videoExistsCache[videoId] - const elem = existsResult.find(e => e.playlistElementId === playlistElementId) - elem.startTimestamp = body.startTimestamp - elem.stopTimestamp = body.stopTimestamp + if (existsResult) { + const elem = existsResult.find(e => e.playlistElementId === playlistElementId) + + elem.startTimestamp = body.startTimestamp + elem.stopTimestamp = body.stopTimestamp + } this.runPlaylistCheck(videoId) }),