From 3996ed944ec1471f43b6b9aff485c9e31a8bf2b6 Mon Sep 17 00:00:00 2001 From: Revanshu Paliwal Date: Mon, 12 Jun 2023 11:26:04 +0200 Subject: [PATCH] SONAR-19236 Fixing update/delete of comments in hotspots activity tab --- .../security-hotspots/components/HotspotReviewHistory.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotReviewHistory.tsx b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotReviewHistory.tsx index 659f9193264..c37456ba50f 100644 --- a/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotReviewHistory.tsx +++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotReviewHistory.tsx @@ -111,7 +111,7 @@ export default function HotspotReviewHistory(props: HotspotReviewHistoryProps) { )} - {editCommentKey && ( + {editCommentKey === key && ( setEditCommentKey('')} @@ -122,7 +122,7 @@ export default function HotspotReviewHistory(props: HotspotReviewHistoryProps) { /> )} - {deleteCommentKey && ( + {deleteCommentKey === key && ( setDeleteCommentKey('')} -- 2.39.5