From d2fa599fe4f47c1e6e953be7119b9c7dbac01ee0 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 5819d253..6b9b4e47 100644 --- a/src/shared/components/post/post.tsx +++ b/src/shared/components/post/post.tsx @@ -386,15 +386,19 @@ export class Post extends Component { onFeaturePost={this.handleFeaturePost} />
- + + {/* Only show the top level comment form if its not a context view */} + {!this.state.commentId && ( + + )}