From 1e25ed18b0b13d7a12747af678e60e546962f254 Mon Sep 17 00:00:00 2001 From: Christopher Gurnee Date: Wed, 3 Nov 2021 11:23:20 -0400 Subject: [PATCH] Fix single-comment-view bug introduced in 702668a --- src/pages/thread/CommentSection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/thread/CommentSection.js b/src/pages/thread/CommentSection.js index dc975e8..a55cbf5 100644 --- a/src/pages/thread/CommentSection.js +++ b/src/pages/thread/CommentSection.js @@ -44,7 +44,7 @@ const unflatten = (comments, root, removed, deleted) => { let rootComment if ((rootComment = lookup.get(root)) !== undefined) { rootComment.replies = commentTree - return rootComment + return [rootComment] } return commentTree