]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19236 Fixing update/delete of comments in hotspots activity tab
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>
Mon, 12 Jun 2023 09:26:04 +0000 (11:26 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 12 Jun 2023 20:02:49 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/security-hotspots/components/HotspotReviewHistory.tsx

index 659f919326420d1b028f1248587e2ff6af4ec33e..c37456ba50f4bf42e96826d0ab01cd094820ce87 100644 (file)
@@ -111,7 +111,7 @@ export default function HotspotReviewHistory(props: HotspotReviewHistoryProps) {
                   </div>
                 )}
 
-                {editCommentKey && (
+                {editCommentKey === key && (
                   <HotspotCommentModal
                     value={markdown}
                     onCancel={() => setEditCommentKey('')}
@@ -122,7 +122,7 @@ export default function HotspotReviewHistory(props: HotspotReviewHistoryProps) {
                   />
                 )}
 
-                {deleteCommentKey && (
+                {deleteCommentKey === key && (
                   <Modal
                     headerTitle={translate('issue.comment.delete')}
                     onClose={() => setDeleteCommentKey('')}