diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index 27a02b1fc75f..8f641d918c46 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -1040,11 +1040,11 @@ function deleteReportComment(reportID, reportAction) { }; // If we are deleting the last visible message, let's find the previous visible one (or set an empty one if there are none) and update the lastMessageText in the LHN. - // Similarly, if we are deleting the last read comment we will want to update the lastVisibleActionCreated to use the previous visible message. + // Similarly, if we are deleting the last read comment we will want to update the lastVisibleActionCreated to use the previous visible message. If there is no + // previous comment, we don't reset lastVisibleActionCreated since we want the report to keep its position in the LHN. let optimisticReport = { lastMessageTranslationKey: '', lastMessageText: '', - lastVisibleActionCreated: '', }; if (reportAction.childVisibleActionCount === 0) { optimisticReport = {