Skip to content

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

FIX: Correctly get the topic_id from the first post (#22110)

Roman Rizzi9e20fcb9c1ca
diff --git a/app/assets/javascripts/discourse/app/components/scrolling-post-stream.js b/app/assets/javascripts/discourse/app/components/scrolling-post-stream.js
index 83fd00a5eb9..793b187ab59 100644
--- a/app/assets/javascripts/discourse/app/components/scrolling-post-stream.js
+++ b/app/assets/javascripts/discourse/app/components/scrolling-post-stream.js
@@ -271,7 +271,7 @@ export default MountWidget.extend({
showSummary() {
showModal("topic-summary").setProperties({
- topicId: this.posts["posts"][0].topic_id,
+ topicId: this.posts.objectAt(0).topic_id,
});
},