From: Dessalines Date: Tue, 10 Mar 2020 01:38:10 +0000 (-0400) Subject: Adding key to comment-node to not clear out form. Fixes #588 X-Git-Url: http://these/git/%22https:/image.com/%7BcanonicalUrl%7D?a=commitdiff_plain;h=a823084947373a7e1c55bfedf6160b1f3e3da8b7;p=lemmy.git Adding key to comment-node to not clear out form. Fixes #588 --- diff --git a/ui/src/components/comment-nodes.tsx b/ui/src/components/comment-nodes.tsx index b15da520..ebbef8fa 100644 --- a/ui/src/components/comment-nodes.tsx +++ b/ui/src/components/comment-nodes.tsx @@ -38,6 +38,7 @@ export class CommentNodes extends Component<
{this.sorter().map(node => ( { i.setState(i.state); } - private buildCommentsTree(): Array { + buildCommentsTree(): Array { let map = new Map(); for (let comment of this.state.comments) { let node: CommentNodeI = {