From 29bb18ce5ebc6e7c1c038b547c7080572e6a8ee7 Mon Sep 17 00:00:00 2001 From: Alex Houchens Date: Tue, 5 May 2015 11:25:52 -0700 Subject: [PATCH] Fix case when config is not defined --- addon/components/bf-header.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addon/components/bf-header.js b/addon/components/bf-header.js index 0ebe405..5186c4e 100644 --- a/addon/components/bf-header.js +++ b/addon/components/bf-header.js @@ -15,8 +15,8 @@ import layout from '../templates/components/bf-header'; export default Ember.Component.extend({ layout: layout, appName: function() { - var configTitle = this.container.lookupFactory('config:environment').APP.bonfire.title; - if (Ember.isEmpty(configTitle)) { + var config = this.container.lookupFactory('config:environment'); + if (Ember.isEmpty(config.APP.bonfire) || Ember.isEmpty(config.APP.bonfire.title) ) { return Ember.String.capitalize(this.get('application.namespace.name')); } else { return configTitle;