From 228c7b883d3f70e6655f54f15f929a470b83937f Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Tue, 7 Jul 2020 21:46:01 -0400 Subject: [PATCH] move index calculation back out of show --- js/src/forum/states/PostStreamState.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/src/forum/states/PostStreamState.js b/js/src/forum/states/PostStreamState.js index 14d1bab8e..8fb4e396d 100644 --- a/js/src/forum/states/PostStreamState.js +++ b/js/src/forum/states/PostStreamState.js @@ -125,7 +125,6 @@ class PostStreamState { show(posts) { this.visibleStart = posts.length ? this.discussion.postIds().indexOf(posts[0].id()) : 0; this.visibleEnd = this.sanitizeIndex(this.visibleStart + posts.length); - this.index = (this.visibleEnd + this.visibleStart) / 2; this.description = posts.length ? dayjs(posts[Math.floor(posts.length / 2)].createdAt()).format('MMMM YYYY') : ''; }