mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 21:53:48 +08:00
DEV: Remove reference to Discourse.Category
This commit is contained in:
parent
e744b9efec
commit
7cdf41d311
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user