From 91f884d13970dfd73222025c171a6b5c4f322837 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 17 Dec 2020 13:46:52 +0100 Subject: [PATCH] Fix live miniatures --- .../app/shared/shared-thumbnail/video-thumbnail.component.ts | 2 ++ 1 file changed, 2 insertions(+) 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 }