}
static GET_ACTOR_BANNER_URL (channel: ServerVideoChannel) {
- if (!channel) return ''
+ if (!channel || channel.banners.length === 0) {
+ return ''
+ }
const banner = channel.banners[0]
if (!banner) return ''
this.description = hash.description
this.support = hash.support
- this.banners = hash.banners
+ this.banners = hash.banners || []
this.isLocal = hash.isLocal