DEV: Remove reference to Discourse.Category

This commit is contained in:
Penar Musaraj 2020-05-11 18:28:45 -04:00
parent e744b9efec
commit 7cdf41d311

View File

@ -137,7 +137,7 @@ export default ComboBoxComponent.extend({
search(filter) { search(filter) {
if (filter) { if (filter) {
let results = Discourse.Category.search(filter); let results = Category.search(filter);
results = this._filterUncategorized(results).sort((a, b) => { results = this._filterUncategorized(results).sort((a, b) => {
if (a.parent_category_id && !b.parent_category_id) { if (a.parent_category_id && !b.parent_category_id) {
return 1; return 1;