Fix error with other videos displayed
This commit is contained in:
parent
5980a252a7
commit
f6dc2fff48
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue