We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8aa3b1 commit da37d08Copy full SHA for da37d08
1 file changed
src/libs/ReportUtils.ts
@@ -9003,9 +9003,7 @@ function getPolicyIDsWithEmptyReportsForAccount(
9003
}
9004
9005
// 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
- );
+ const transactions = (reportsTransactionsParam[report.reportID] ?? []).filter((transaction) => transaction.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE);
9009
if (transactions.length === 0) {
9010
policyLookup[report.policyID] = true;
9011
0 commit comments