FIX: Don't put non-category in Site.categories (#26664)

This commit is contained in:
Daniel Waterworth 2024-04-17 15:54:34 -05:00 committed by GitHub
parent 6281f5d768
commit 7ce5eac235
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -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();