From 4e0a43f2117ac83bcf7e0f9bed65370f6c4c15bb Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 10 Sep 2021 19:54:43 -0400 Subject: [PATCH] Revert "FIX: Give the topic timeline unique keys for state" This reverts commit b246a63a5922321eb63d28a191a0cde3f1152f21. --- .../javascripts/discourse/app/widgets/topic-timeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/widgets/topic-timeline.js b/app/assets/javascripts/discourse/app/widgets/topic-timeline.js index 85b088ff4bd..03149812e00 100644 --- a/app/assets/javascripts/discourse/app/widgets/topic-timeline.js +++ b/app/assets/javascripts/discourse/app/widgets/topic-timeline.js @@ -144,7 +144,7 @@ createWidget("timeline-padding", { createWidget("timeline-scrollarea", { tagName: "div.timeline-scrollarea", - buildKey: (attrs) => `timeline-scrollarea-${attrs.topic.id}`, + buildKey: () => `timeline-scrollarea`, buildAttributes() { return { style: `height: ${scrollareaHeight()}px` }; @@ -411,7 +411,7 @@ createWidget("timeline-footer-controls", { export default createWidget("topic-timeline", { tagName: "div.topic-timeline", - buildKey: (attrs) => `topic-timeline-area-${attrs.topic.id}`, + buildKey: () => "topic-timeline-area", defaultState() { return { position: null, excerpt: null };