From f6dc2fff48cbc3b95eb71d3af5eb60d3b689c2ad Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 8 Feb 2018 10:19:09 +0100 Subject: [PATCH] Fix error with other videos displayed --- client/src/app/videos/+video-watch/video-watch.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { } private updateOtherVideosDisplayed () { - if (this.otherVideos.length > 0) { + if (this.video && this.otherVideos && this.otherVideos.length > 0) { this.otherVideosDisplayed = this.otherVideos.filter(v => v.uuid !== this.video.uuid) } } -- 2.41.0