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() {
|
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')
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue