From ff6462cc020bd96c97fcc80bf2a2aaba5e65d15a Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 9 Mar 2020 21:38:10 -0400 Subject: [PATCH] Adding key to comment-node to not clear out form. Fixes #588 --- ui/src/components/comment-nodes.tsx | 1 + ui/src/components/post.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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<
{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 = {