Skip to content

Commit 29bb18c

Browse files
committed
Fix case when config is not defined
1 parent b8ecb49 commit 29bb18c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addon/components/bf-header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ import layout from '../templates/components/bf-header';
1515
export default Ember.Component.extend({
1616
layout: layout,
1717
appName: function() {
18-
var configTitle = this.container.lookupFactory('config:environment').APP.bonfire.title;
19-
if (Ember.isEmpty(configTitle)) {
18+
var config = this.container.lookupFactory('config:environment');
19+
if (Ember.isEmpty(config.APP.bonfire) || Ember.isEmpty(config.APP.bonfire.title) ) {
2020
return Ember.String.capitalize(this.get('application.namespace.name'));
2121
} else {
2222
return configTitle;

0 commit comments

Comments
 (0)