reverse child comments
This commit is contained in:
parent
d76ece04bc
commit
142e695150
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ function CommentList(props: Props) {
|
|||
sortedArray.push(parentComment);
|
||||
|
||||
childComments
|
||||
.reverse()
|
||||
.filter(childComment => childComment.parent_id === parentComment.comment_id)
|
||||
.forEach(childComment => {
|
||||
sortedArray.push(childComment);
|
||||
|
|
Loading…
Reference in a new issue