diff --git a/app/assets/javascripts/app/controllers/_channel/email.js.coffee b/app/assets/javascripts/app/controllers/_channel/email.js.coffee index 703beef20..7764bdb1b 100644 --- a/app/assets/javascripts/app/controllers/_channel/email.js.coffee +++ b/app/assets/javascripts/app/controllers/_channel/email.js.coffee @@ -253,7 +253,7 @@ class App.ChannelEmailAccountOverview extends App.Controller email_addresses_all = App.EmailAddress.all() email_addresses_not_used = [] for email_address in email_addresses_all - if !email_address.channel_id || !App.Channel.exists(email_address.channel_id) + if !email_address.channel_id || email_address.channel_id is '' email_addresses_not_used.push email_address # get channels diff --git a/app/assets/javascripts/app/views/channel/email_account_overview.jst.eco b/app/assets/javascripts/app/views/channel/email_account_overview.jst.eco index 7af1f5c68..ddd0ff59a 100644 --- a/app/assets/javascripts/app/views/channel/email_account_overview.jst.eco +++ b/app/assets/javascripts/app/views/channel/email_account_overview.jst.eco @@ -4,7 +4,7 @@