1
0
Fork 0

Fix error with other videos displayed

This commit is contained in:
Chocobozzz 2018-02-08 10:19:09 +01:00
parent 5980a252a7
commit f6dc2fff48
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
} }
private updateOtherVideosDisplayed () { 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) this.otherVideosDisplayed = this.otherVideos.filter(v => v.uuid !== this.video.uuid)
} }
} }