From 5f21a4b74915f722d257fe5f8169094aadab72ff Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Tue, 23 Apr 2024 20:01:25 +0800 Subject: [PATCH 1/2] fix deleted parent action is filtered out --- src/pages/home/report/ReportActionsList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionsList.tsx b/src/pages/home/report/ReportActionsList.tsx index c280a093cb13..090ca6754054 100644 --- a/src/pages/home/report/ReportActionsList.tsx +++ b/src/pages/home/report/ReportActionsList.tsx @@ -193,7 +193,7 @@ 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], From f12fce97c0041be0f62a161a4e85d48bfe8f0d94 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Fri, 26 Apr 2024 12:33:42 +0800 Subject: [PATCH 2/2] prettier --- src/pages/home/report/ReportActionsList.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionsList.tsx b/src/pages/home/report/ReportActionsList.tsx index 5dfb73dcf106..79f43ed3688d 100644 --- a/src/pages/home/report/ReportActionsList.tsx +++ b/src/pages/home/report/ReportActionsList.tsx @@ -193,7 +193,10 @@ function ReportActionsList({ () => sortedReportActions.filter( (reportAction) => - (isOffline || ReportActionsUtils.isDeletedParentAction(reportAction) || 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],