Skip to content

Commit fe8dd78

Browse files
committed
only show basic export for group exports
1 parent 14a4678 commit fe8dd78

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/hooks/useSearchBulkActions.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,7 @@ function useSearchBulkActions({queryJSON}: UseSearchBulkActionsParams) {
887887

888888
const connectedIntegration = getConnectedIntegration(policy);
889889
const isReportsTab = isExpenseReportType;
890+
const includesGroupExport = Object.values(selectedTransactions).some(selectedTransaction => !selectedTransaction?.transaction);
890891

891892
const canReportBeExported = (report: (typeof selectedReports)[0], exportOption: ValueOf<typeof CONST.REPORT.EXPORT_OPTIONS>) => {
892893
if (!report.reportID) {
@@ -1005,6 +1006,9 @@ function useSearchBulkActions({queryJSON}: UseSearchBulkActionsParams) {
10051006
});
10061007

10071008
for (const template of exportTemplates) {
1009+
if (includesGroupExport) {
1010+
break;
1011+
}
10081012
exportOptions.push({
10091013
text: template.name,
10101014
icon: expensifyIcons.Table,

0 commit comments

Comments
 (0)