From 31f702e9d0fe1dbc4db4651f49b88c2d9f81a21d Mon Sep 17 00:00:00 2001 From: Eric Han Date: Mon, 7 Aug 2023 18:39:37 +0800 Subject: [PATCH] Fix: codeblock shows edited and remain unchanged after switching tab --- src/libs/actions/Report.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index 216d71b3389e..4a783034fa37 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -1058,7 +1058,7 @@ function editReportComment(reportID, originalReportAction, textForNewComment) { } // Skip the Edit if message is not changed - if (parsedOriginalCommentHTML === htmlForNewComment.trim()) { + if (parsedOriginalCommentHTML === htmlForNewComment.trim() || originalCommentHTML === htmlForNewComment.trim()) { return; }