Skip to content

Commit

Permalink
Merge pull request #40781 from bernhardoj/fix/39218-deleted-parent-ac…
Browse files Browse the repository at this point in the history
…tion-is-hidden-when-deleting-it

Fix deleted parent message disappears instead of showing [Deleted message] when deleting it
  • Loading branch information
roryabraham authored May 14, 2024
2 parents 0b9cc89 + 9a081e1 commit 819e610
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/home/report/ReportActionsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,10 @@ function ReportActionsList({
() =>
sortedReportActions.filter(
(reportAction) =>
(isOffline || reportAction.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE || reportAction.errors) &&
(isOffline ||
ReportActionsUtils.isDeletedParentAction(reportAction) ||
reportAction.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE ||
reportAction.errors) &&
ReportActionsUtils.shouldReportActionBeVisible(reportAction, reportAction.reportActionID),
),
[sortedReportActions, isOffline],
Expand Down

0 comments on commit 819e610

Please sign in to comment.