X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-thumbnail%2Fvideo-thumbnail.component.ts;h=bdede17a3d448bc13651b28cdbd6fc1a9b95754c;hb=4024c44f9027a32809931de0692d40d001df721c;hp=67a9b0028ef2002b65f1ddff061722c3a5d80e8f;hpb=5c0904fc664e3eb04ac75a9430c1297c2a14f853;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts b/client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts index 67a9b0028..bdede17a3 100644 --- a/client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts +++ b/client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts @@ -31,6 +31,8 @@ export class VideoThumbnailComponent { } isLiveEnded () { + if (!this.video.state) return + return this.video.state.id === VideoState.LIVE_ENDED }