FIX: Regression due to deprecation fix on site settings
This commit is contained in:
parent
923db2e559
commit
e79465a965
|
@ -5,12 +5,12 @@ export default Ember.Controller.extend({
|
|||
filteredContent: function() {
|
||||
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) {
|
||||
return category.siteSettings;
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}.property('adminSiteSettings.content', 'categoryNameKey')
|
||||
}.property('adminSiteSettings.model', 'categoryNameKey')
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue