mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 23:03:38 +08:00
FIX: Don't put non-category in Site.categories (#26664)
This commit is contained in:
parent
6281f5d768
commit
7ce5eac235
|
@ -57,7 +57,6 @@ export function translateResults(results, opts) {
|
||||||
|
|
||||||
results.categories = results.categories
|
results.categories = results.categories
|
||||||
.map(function (category) {
|
.map(function (category) {
|
||||||
Site.current().updateCategory(category);
|
|
||||||
return Category.list().findBy("id", category.id || category.model.id);
|
return Category.list().findBy("id", category.id || category.model.id);
|
||||||
})
|
})
|
||||||
.compact();
|
.compact();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user