FIX: Regression due to deprecation fix on site settings

This commit is contained in:
Robin Ward 2016-10-24 11:32:19 -04:00
parent 923db2e559
commit e79465a965
1 changed files with 2 additions and 2 deletions

View File

@ -5,12 +5,12 @@ export default Ember.Controller.extend({
filteredContent: function() { filteredContent: function() {
if (!this.get('categoryNameKey')) { return []; } if (!this.get('categoryNameKey')) { return []; }
const category = this.get('adminSiteSettings.allSiteSettings').findProperty('nameKey', this.get('categoryNameKey')); const category = (this.get('adminSiteSettings.model') || []).findProperty('nameKey', this.get('categoryNameKey'));
if (category) { if (category) {
return category.siteSettings; return category.siteSettings;
} else { } else {
return []; return [];
} }
}.property('adminSiteSettings.content', 'categoryNameKey') }.property('adminSiteSettings.model', 'categoryNameKey')
}); });