From a823084947373a7e1c55bfedf6160b1f3e3da8b7 Mon Sep 17 00:00:00 2001
From: Dessalines <tyhou13@gmx.com>
Date: Mon, 9 Mar 2020 21:38:10 -0400
Subject: Adding key to comment-node to not clear out form. Fixes #588

---
 ui/src/components/post.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'ui/src/components/post.tsx')

diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx
index ed1ba302..0485975a 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 = {
-- 
cgit v1.2.3

