Fix error with other videos displayed
This commit is contained in:
parent
5980a252a7
commit
f6dc2fff48
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue