Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/libs/SearchUIUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,8 @@ function getReportSections(data: OnyxTypes.SearchResults['data'], metadata: Onyx
}
}

return Object.values(reportIDToTransactions);
// Filter out reports with no transactions to prevent the wrong number of the selected options
return Object.values(reportIDToTransactions).filter((report) => report.transactions.length);
Comment thread
nkdengineer marked this conversation as resolved.
Resolved
Comment thread
inimaga marked this conversation as resolved.
Resolved
}

/**
Expand Down