From 843faf85b71ee2d9167fac51de8bacf06bc5ba60 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Tue, 30 Sep 2025 15:27:41 +0530 Subject: [PATCH] [WIKI-668] fix: comments mention #7874 --- apps/web/core/components/comments/card/edit-form.tsx | 2 +- apps/web/core/components/comments/card/root.tsx | 1 + apps/web/core/components/comments/comment-create.tsx | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/core/components/comments/card/edit-form.tsx b/apps/web/core/components/comments/card/edit-form.tsx index a9bac4109..b370db0a2 100644 --- a/apps/web/core/components/comments/card/edit-form.tsx +++ b/apps/web/core/components/comments/card/edit-form.tsx @@ -93,7 +93,7 @@ export const CommentCardEditForm: React.FC = observer((props) => { const { asset_id } = await activityOperations.uploadCommentAsset(blockId, file, comment.id); return asset_id; }} - projectId={projectId?.toString() ?? ""} + projectId={projectId} parentClassName="p-2" displayConfig={{ fontSize: "small-font", diff --git a/apps/web/core/components/comments/card/root.tsx b/apps/web/core/components/comments/card/root.tsx index 2b6296dbb..50fc7e1a5 100644 --- a/apps/web/core/components/comments/card/root.tsx +++ b/apps/web/core/components/comments/card/root.tsx @@ -66,6 +66,7 @@ export const CommentCard: FC = observer((props) => { isEditing readOnlyEditorRef={readOnlyEditorRef.current} setIsEditing={setIsEditing} + projectId={projectId} workspaceId={workspaceId} workspaceSlug={workspaceSlug} /> diff --git a/apps/web/core/components/comments/comment-create.tsx b/apps/web/core/components/comments/comment-create.tsx index fd15336a0..e2b40641b 100644 --- a/apps/web/core/components/comments/comment-create.tsx +++ b/apps/web/core/components/comments/comment-create.tsx @@ -114,6 +114,7 @@ export const CommentCreate: FC = observer((props) => { id={"add_comment_" + entityId} value={"

"} workspaceSlug={workspaceSlug} + projectId={projectId} onEnterKeyPress={(e) => { if (!isEmpty && !isSubmitting) { handleSubmit(onSubmit)(e);