From 9e20fcb9c1cab263b9eb62fbf5e74c8701d19654 Mon Sep 17 00:00:00 2001 From: Roman Rizzi Date: Wed, 14 Jun 2023 11:52:27 -0300 Subject: [PATCH] FIX: Correctly get the topic_id from the first post (#22110) --- .../discourse/app/components/scrolling-post-stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, }); },