mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 22:53:50 +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
|
||||
.map(function (category) {
|
||||
Site.current().updateCategory(category);
|
||||
return Category.list().findBy("id", category.id || category.model.id);
|
||||
})
|
||||
.compact();
|
||||
|
|
Loading…
Reference in New Issue
Block a user