Fix undefined this.user.videoChannels on production build

pull/4387/head
Ms Kimsible 2021-09-06 16:31:44 +02:00 committed by Chocobozzz
parent b16e0cf248
commit 4546d92e40
1 changed files with 3 additions and 7 deletions

View File

@ -16,14 +16,10 @@ export class ChannelsSetupMessageComponent implements OnInit {
private authService: AuthService
) {}
get userInformationLoaded () {
return this.authService.userInformationLoaded
}
get hasChannelNotConfigured () {
return this.user.videoChannels
.filter((channel: VideoChannel) => (!channel.avatar || !channel.description))
.length > 0
if (!this.user.videoChannels) return
return this.user.videoChannels.filter((channel: VideoChannel) => (!channel.avatar || !channel.description)).length > 0
}
ngOnInit () {