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

View file

@ -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)
}
}