Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Topic timeline not updating in megatopics. #14645

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

tgxworld
Copy link
Contributor

Before this fix, jumping to posts using the topic timeline scrollbar
will not update the counts since the topic scrollarea is not rerendered.

Follow-up to db337b1

Before this fix, jumping to posts using the topic timeline scrollbar
will not update the counts since the topic scrollarea is not rerendered.

Follow-up to db337b1
@tgxworld tgxworld force-pushed the fix_topic_timeline_on_mega_topics branch from e5a42ec to 0eab101 Compare October 19, 2021 08:59
@@ -555,7 +555,7 @@ export default createWidget("topic-timeline", {
if (!attrs.mobileView) {
const streamLength = attrs.topic.get("postStream.stream.length");

if (streamLength < 2) {
if (streamLength === 1) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Megatopics do not have a stream so the streamLength will always be zero.

@tgxworld tgxworld merged commit e74e3fa into discourse:main Oct 20, 2021
@tgxworld
Copy link
Contributor Author

Thank you @davidtaylorhq

@tgxworld tgxworld deleted the fix_topic_timeline_on_mega_topics branch October 20, 2021 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants