aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-main/video-channel/video-channel.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/shared-main/video-channel/video-channel.model.ts')
-rw-r--r--client/src/app/shared/shared-main/video-channel/video-channel.model.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/shared/shared-main/video-channel/video-channel.model.ts b/client/src/app/shared/shared-main/video-channel/video-channel.model.ts
index e22b0cfd0..32376bf62 100644
--- a/client/src/app/shared/shared-main/video-channel/video-channel.model.ts
+++ b/client/src/app/shared/shared-main/video-channel/video-channel.model.ts
@@ -33,7 +33,9 @@ export class VideoChannel extends Actor implements ServerVideoChannel {
33 } 33 }
34 34
35 static GET_ACTOR_BANNER_URL (channel: ServerVideoChannel) { 35 static GET_ACTOR_BANNER_URL (channel: ServerVideoChannel) {
36 if (!channel) return '' 36 if (!channel || channel.banners.length === 0) {
37 return ''
38 }
37 39
38 const banner = channel.banners[0] 40 const banner = channel.banners[0]
39 if (!banner) return '' 41 if (!banner) return ''
@@ -57,7 +59,7 @@ export class VideoChannel extends Actor implements ServerVideoChannel {
57 this.description = hash.description 59 this.description = hash.description
58 this.support = hash.support 60 this.support = hash.support
59 61
60 this.banners = hash.banners 62 this.banners = hash.banners || []
61 63
62 this.isLocal = hash.isLocal 64 this.isLocal = hash.isLocal
63 65