aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-17 15:41:26 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-19 11:30:21 +0200
commit50a1e91dccb13c2816ab8bf3cb6ae7ae3f35cac6 (patch)
treeb18ea6ef7107c4d576a8802f326462df6cbb1883 /client/src/app
parent60ea8f7a31121ed900620bd970d8b0284a4e1f32 (diff)
downloadPeerTube-50a1e91dccb13c2816ab8bf3cb6ae7ae3f35cac6.tar.gz
PeerTube-50a1e91dccb13c2816ab8bf3cb6ae7ae3f35cac6.tar.zst
PeerTube-50a1e91dccb13c2816ab8bf3cb6ae7ae3f35cac6.zip
Fix startAt/stopAt playlist element edition
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/shared/shared-video-playlist/video-playlist.service.ts9
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 }),