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

View File

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