@@ -18,7 +18,7 @@ import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID';
18
18
import Log from '@libs/Log' ;
19
19
import { selectAllTransactionsForReport , shouldDisplayReportTableView } from '@libs/MoneyRequestReportUtils' ;
20
20
import navigationRef from '@libs/Navigation/navigationRef' ;
21
- import { getFilteredReportActionsForReportView , getOneTransactionThreadReportID , isMoneyRequestAction } from '@libs/ReportActionsUtils' ;
21
+ import { getOneTransactionThreadReportID , isDeletedParentAction , isMoneyRequestAction } from '@libs/ReportActionsUtils' ;
22
22
import { canEditReportAction , getReportOfflinePendingActionAndErrors , isReportTransactionThread } from '@libs/ReportUtils' ;
23
23
import { buildCannedSearchQuery } from '@libs/SearchQueryUtils' ;
24
24
import Navigation from '@navigation/Navigation' ;
@@ -95,9 +95,8 @@ function MoneyRequestReportView({report, policy, reportMetadata, shouldDisplayRe
95
95
const [ isComposerFullSize ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_IS_COMPOSER_FULL_SIZE } ${ reportID } ` , { initialValue : false , canBeMissing : true } ) ;
96
96
const { reportPendingAction, reportErrors} = getReportOfflinePendingActionAndErrors ( report ) ;
97
97
98
- const { reportActions : unfilteredReportActions , hasNewerActions, hasOlderActions} = usePaginatedReportActions ( reportID ) ;
99
- const reportActions = getFilteredReportActionsForReportView ( unfilteredReportActions ) ;
100
-
98
+ const { reportActions : reportActionsWithDeletedExpenses , hasNewerActions, hasOlderActions} = usePaginatedReportActions ( reportID ) ;
99
+ const reportActions = reportActionsWithDeletedExpenses . filter ( ( value ) => ! isDeletedParentAction ( value ) ) ;
101
100
const transactionThreadReportID = getOneTransactionThreadReportID ( reportID , reportActions ?? [ ] , isOffline ) ;
102
101
103
102
const [ transactions = [ ] ] = useOnyx ( ONYXKEYS . COLLECTION . TRANSACTION , {
0 commit comments