Skip to content

Commit

Permalink
Merge pull request #26649 from c3024/26047-prevent-reportAction-with-…
Browse files Browse the repository at this point in the history
…errors-from-being-visible-lastVisibleAction

prevent reportAction with errors to be visible as lastAction
  • Loading branch information
robertjchen authored Sep 4, 2023
2 parents 1e0a249 + 882e77e commit d2bdaec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/ReportActionsUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,10 @@ function shouldReportActionBeVisibleAsLastAction(reportAction) {
return false;
}

if (!_.isEmpty(reportAction.errors)) {
return false;
}

return shouldReportActionBeVisible(reportAction, reportAction.reportActionID) && !isWhisperAction(reportAction) && !isDeletedAction(reportAction);
}

Expand Down

0 comments on commit d2bdaec

Please sign in to comment.