A platform for community discussion. Free, open, simple.
DEV: Resolve topic#details computed-property.override deprecation (#20612)
David Taylorb1727d9748fc
diff --git a/app/assets/javascripts/discourse/app/models/topic.js b/app/assets/javascripts/discourse/app/models/topic.jsindex 39521f4f18a..63fcf5f7242 100644--- a/app/assets/javascripts/discourse/app/models/topic.js+++ b/app/assets/javascripts/discourse/app/models/topic.js@@ -183,12 +183,15 @@ const Topic = RestModel.extend({return postsCount - 1;},- @discourseComputed- details() {- return this.store.createRecord("topicDetails", {+ get details() {+ return (this._details ??= this.store.createRecord("topicDetails", {id: this.id,topic: this,- });+ }));+ },++ set details(value) {+ return (this._details = value);},@discourseComputed("visible")