From a823084947373a7e1c55bfedf6160b1f3e3da8b7 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 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 = {