Skip to content

Commit

Permalink
Merge pull request #24205 from eh2077/18928-fix-multiline-codeblock-d…
Browse files Browse the repository at this point in the history
…isappear-after-editing-twice

Fix: codeblock shows edited and remain unchanged after switching tab
  • Loading branch information
puneetlath authored Aug 9, 2023
2 parents b3789c9 + 31f702e commit 202f2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,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;
}

Expand Down

0 comments on commit 202f2eb

Please sign in to comment.