From ff62915ddfa2492ab3889d8465b530c1d57f59dd Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 7 Aug 2023 12:53:21 -0400 Subject: [PATCH] Fix comment insertion from context views. Fixes #2030 (#2031) --- src/shared/components/post/post.tsx | 40 +++++++++++++-------- src/shared/utils/app/build-comments-tree.ts | 4 +++ 2 files changed, 30 insertions(+), 14 deletions(-) diff --git a/src/shared/components/post/post.tsx b/src/shared/components/post/post.tsx index 49e73486..77fe7804 100644 --- a/src/shared/components/post/post.tsx +++ b/src/shared/components/post/post.tsx @@ -389,15 +389,19 @@ export class Post extends Component { onMarkPostAsRead={this.handleMarkPostAsRead} />
- + + {/* Only show the top level comment form if its not a context view */} + {!this.state.commentId && ( + + )}