diff --git a/assets/javascripts/discourse/components/knowledge-explorer-search.js.es6 b/assets/javascripts/discourse/components/knowledge-explorer-search.js.es6 index 335ed57..c76cf2a 100644 --- a/assets/javascripts/discourse/components/knowledge-explorer-search.js.es6 +++ b/assets/javascripts/discourse/components/knowledge-explorer-search.js.es6 @@ -9,13 +9,7 @@ export default Component.extend({ // TODO: Use discouseDebounce when discourse 2.7 gets released. const debounceFunc = discourseDebounce || debounce; - debounceFunc( - this, - function () { - this.onSearch(term); - }, - 500 - ); + debounceFunc(this, "onSearch", term, 500); }, actions: {