From e79465a965cbeed2d8e16fa568e1f697a095ae2e Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 24 Oct 2016 11:32:19 -0400 Subject: [PATCH] FIX: Regression due to deprecation fix on site settings --- .../admin/controllers/admin-site-settings-category.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/admin/controllers/admin-site-settings-category.js.es6 b/app/assets/javascripts/admin/controllers/admin-site-settings-category.js.es6 index 027957b1954..407deac692f 100644 --- a/app/assets/javascripts/admin/controllers/admin-site-settings-category.js.es6 +++ b/app/assets/javascripts/admin/controllers/admin-site-settings-category.js.es6 @@ -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') });