Fix single-comment-view bug introduced in 702668a

This commit is contained in:
Christopher Gurnee 2021-11-03 11:23:20 -04:00
parent 2d32874d31
commit 1e25ed18b0

View file

@ -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