From 7ce5eac23502fbcd0ab6827e20a83be6adddc65a Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Wed, 17 Apr 2024 15:54:34 -0500 Subject: [PATCH] FIX: Don't put non-category in Site.categories (#26664) --- app/assets/javascripts/discourse/app/lib/search.js | 1 - 1 file changed, 1 deletion(-) diff --git a/app/assets/javascripts/discourse/app/lib/search.js b/app/assets/javascripts/discourse/app/lib/search.js index 2bcde5f5b73..b444bb78b17 100644 --- a/app/assets/javascripts/discourse/app/lib/search.js +++ b/app/assets/javascripts/discourse/app/lib/search.js @@ -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();