diff --git a/app/assets/javascripts/admin/controllers/admin_user_controller.js b/app/assets/javascripts/admin/controllers/admin_user_controller.js index 5fc95f50502..277be26bd80 100644 --- a/app/assets/javascripts/admin/controllers/admin_user_controller.js +++ b/app/assets/javascripts/admin/controllers/admin_user_controller.js @@ -25,11 +25,9 @@ Discourse.AdminUserIndexController = Discourse.ObjectController.extend({ primaryGroupDirty: Discourse.computed.propertyNotEqual('originalPrimaryGroupId', 'primary_group_id'), - custom_groups: function(){ - return this.get("model.groups").filter(function(g){ - return (!g.automatic && g.visible); - }); - }.property("model.groups.[]"), + custom_groups: Ember.computed.filter("model.groups", function(g){ + return (!g.automatic && g.visible); + }), actions: { toggleTitleEdit: function() {