Yuki Takei 5 лет назад
Родитель
Сommit
01251a070c
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/client/js/components/PageComments.jsx

+ 2 - 1
src/client/js/components/PageComments.jsx

@@ -191,7 +191,8 @@ class PageComments extends React.Component {
   render() {
     const topLevelComments = [];
     const allReplies = [];
-    const comments = this.props.commentContainer.state.comments;
+    const comments = this.props.commentContainer.state.comments
+      .slice().reverse(); // create shallow copy and reverse
 
     comments.forEach((comment) => {
       if (comment.replyTo === undefined) {