Skip to content

A platform for community discussion. Free, open, simple.

FIX: Restore (deprecated) ability to overwrite a property (#11207)

Jarek Radoszcd6dbd3e9ca4
diff --git a/app/assets/javascripts/discourse/app/components/d-navigation.js b/app/assets/javascripts/discourse/app/components/d-navigation.js
index 080581cb4cc..824ece25909 100644
--- a/app/assets/javascripts/discourse/app/components/d-navigation.js
+++ b/app/assets/javascripts/discourse/app/components/d-navigation.js
@@ -4,14 +4,18 @@ import { inject as service } from "@ember/service";
import Component from "@ember/component";
import FilterModeMixin from "discourse/mixins/filter-mode";
import bootbox from "bootbox";
-import { readOnly } from "@ember/object/computed";
export default Component.extend(FilterModeMixin, {
router: service(),
tagName: "",
- categories: readOnly("site.categoriesList"),
+ // Should be a `readOnly` instead but some themes/plugins still pass
+ // the `categories` property into this component
+ @discourseComputed("site.categoriesList")
+ categories(categoriesList) {
+ return categoriesList;
+ },
@discourseComputed("category")
showCategoryNotifications(category) {