diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/shared/shared-video-playlist/video-playlist.service.ts | 9 |
1 files changed, 6 insertions, 3 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 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 { | |||
215 | map(this.restExtractor.extractDataBool), | 215 | map(this.restExtractor.extractDataBool), |
216 | tap(() => { | 216 | tap(() => { |
217 | const existsResult = this.videoExistsCache[videoId] | 217 | const existsResult = this.videoExistsCache[videoId] |
218 | const elem = existsResult.find(e => e.playlistElementId === playlistElementId) | ||
219 | 218 | ||
220 | elem.startTimestamp = body.startTimestamp | 219 | if (existsResult) { |
221 | elem.stopTimestamp = body.stopTimestamp | 220 | const elem = existsResult.find(e => e.playlistElementId === playlistElementId) |
221 | |||
222 | elem.startTimestamp = body.startTimestamp | ||
223 | elem.stopTimestamp = body.stopTimestamp | ||
224 | } | ||
222 | 225 | ||
223 | this.runPlaylistCheck(videoId) | 226 | this.runPlaylistCheck(videoId) |
224 | }), | 227 | }), |