diff --git a/app/assets/javascripts/discourse/controllers/search.js.es6 b/app/assets/javascripts/discourse/controllers/search.js.es6 index 1d9cb22ad..5f814e99f 100644 --- a/app/assets/javascripts/discourse/controllers/search.js.es6 +++ b/app/assets/javascripts/discourse/controllers/search.js.es6 @@ -14,9 +14,9 @@ export default Em.Controller.extend({ return Ember.get(searchContext, 'type'); } }, - set(key, value) { + set(value, searchContext) { // a bit hacky, consider cleaning this up, need to work through all observers though - const context = $.extend({}, this.get('searchContext')); + const context = $.extend({}, searchContext); context.type = value; this.set('searchContext', context); return this.get('searchContext.type');