diff --git a/ui/src/components/comment-nodes.tsx b/ui/src/components/comment-nodes.tsx index b15da5208..ebbef8fad 100644 --- a/ui/src/components/comment-nodes.tsx +++ b/ui/src/components/comment-nodes.tsx @@ -38,6 +38,7 @@ export class CommentNodes extends Component< <div className="comments"> {this.sorter().map(node => ( <CommentNode + key={node.comment.id} node={node} noIndent={this.props.noIndent} viewOnly={this.props.viewOnly} diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx index ed1ba3021..0485975a1 100644 --- a/ui/src/components/post.tsx +++ b/ui/src/components/post.tsx @@ -300,7 +300,7 @@ export class Post extends Component<any, PostState> { i.setState(i.state); } - private buildCommentsTree(): Array<CommentNodeI> { + buildCommentsTree(): Array<CommentNodeI> { let map = new Map<number, CommentNodeI>(); for (let comment of this.state.comments) { let node: CommentNodeI = {