Fix undefined this.user.videoChannels on production build
This commit is contained in:
parent
b16e0cf248
commit
4546d92e40
|
@ -16,14 +16,10 @@ export class ChannelsSetupMessageComponent implements OnInit {
|
||||||
private authService: AuthService
|
private authService: AuthService
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
get userInformationLoaded () {
|
|
||||||
return this.authService.userInformationLoaded
|
|
||||||
}
|
|
||||||
|
|
||||||
get hasChannelNotConfigured () {
|
get hasChannelNotConfigured () {
|
||||||
return this.user.videoChannels
|
if (!this.user.videoChannels) return
|
||||||
.filter((channel: VideoChannel) => (!channel.avatar || !channel.description))
|
|
||||||
.length > 0
|
return this.user.videoChannels.filter((channel: VideoChannel) => (!channel.avatar || !channel.description)).length > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit () {
|
ngOnInit () {
|
||||||
|
|
Loading…
Reference in New Issue