From dfc8bc4aece407d677f8e808d957342460e3430f Mon Sep 17 00:00:00 2001 From: hjlarry Date: Thu, 9 Oct 2025 17:02:39 +0800 Subject: [PATCH] only can edit own replies --- web/app/components/workflow/comment/thread.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/workflow/comment/thread.tsx b/web/app/components/workflow/comment/thread.tsx index 3098198a6b..14f6b00d74 100644 --- a/web/app/components/workflow/comment/thread.tsx +++ b/web/app/components/workflow/comment/thread.tsx @@ -307,12 +307,13 @@ export const CommentThread: FC = memo(({
{replies.map((reply) => { const isReplyEditing = editingReply?.id === reply.id + const isOwnReply = reply.created_by_account?.id === userProfile?.id return (
- {!isReplyEditing && ( + {isOwnReply && !isReplyEditing && (