aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-08 10:19:09 +0100
committerChocobozzz <me@florianbigard.com>2018-02-08 10:19:09 +0100
commitf6dc2fff48cbc3b95eb71d3af5eb60d3b689c2ad (patch)
tree3ef2bf871a7eb071f764a4b2daa3834892a3b25b
parent5980a252a7f71e3e79a1b7ca39a63eb4dbfca9e4 (diff)
downloadPeerTube-f6dc2fff48cbc3b95eb71d3af5eb60d3b689c2ad.tar.gz
PeerTube-f6dc2fff48cbc3b95eb71d3af5eb60d3b689c2ad.tar.zst
PeerTube-f6dc2fff48cbc3b95eb71d3af5eb60d3b689c2ad.zip
Fix error with other videos displayed
-rw-r--r--client/src/app/videos/+video-watch/video-watch.component.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-watch/video-watch.component.ts b/client/src/app/videos/+video-watch/video-watch.component.ts
index a281fff23..8330aba15 100644
--- a/client/src/app/videos/+video-watch/video-watch.component.ts
+++ b/client/src/app/videos/+video-watch/video-watch.component.ts
@@ -405,7 +405,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
405 } 405 }
406 406
407 private updateOtherVideosDisplayed () { 407 private updateOtherVideosDisplayed () {
408 if (this.otherVideos.length > 0) { 408 if (this.video && this.otherVideos && this.otherVideos.length > 0) {
409 this.otherVideosDisplayed = this.otherVideos.filter(v => v.uuid !== this.video.uuid) 409 this.otherVideosDisplayed = this.otherVideos.filter(v => v.uuid !== this.video.uuid)
410 } 410 }
411 } 411 }