Skip to content

Commit da37d08

Browse files
fix: remove getReportTransactions
1 parent d8aa3b1 commit da37d08

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9003,9 +9003,7 @@ function getPolicyIDsWithEmptyReportsForAccount(
90039003
}
90049004

90059005
// Ignore transactions that are already pending deletion so we treat the report as empty once the removal is queued.
9006-
const transactions = getReportTransactions(report.reportID, reportsTransactionsParam).filter(
9007-
(transaction) => transaction.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE,
9008-
);
9006+
const transactions = (reportsTransactionsParam[report.reportID] ?? []).filter((transaction) => transaction.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE);
90099007
if (transactions.length === 0) {
90109008
policyLookup[report.policyID] = true;
90119009
}

0 commit comments

Comments
 (0)