File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -463,15 +463,15 @@ function useSearchBulkActions({queryJSON}: UseSearchBulkActionsParams) {
463463 return ;
464464 }
465465
466- const includesEmptyReports = Object . values ( selectedTransactions ) . some ( ( selectedTransaction ) => ! selectedTransaction ?. transaction ) ;
466+ const includesGroupExport = Object . entries ( selectedTransactions ) . some ( ( [ key , selectedTransaction ] ) => key . startsWith ( 'group_' ) && ! selectedTransaction ?. transaction ) ;
467467 const reportIDList = selectedReports . length > 0 ? selectedReportIDs : selectedTransactionReportIDs ;
468468 let didFail = false ;
469469 await exportSearchItemsToCSV (
470470 {
471471 query : status ,
472472 jsonQuery : queryJSON ? serializeQueryJSONForBackend ( queryJSON ) : JSON . stringify ( queryJSON ) ,
473- reportIDList : includesEmptyReports ? [ ] : reportIDList ,
474- transactionIDList : includesEmptyReports ? [ ] : selectedTransactionsKeys ,
473+ reportIDList : includesGroupExport ? [ ] : reportIDList ,
474+ transactionIDList : includesGroupExport ? [ ] : selectedTransactionsKeys ,
475475 } ,
476476 ( ) => {
477477 didFail = true ;
You can’t perform that action at this time.
0 commit comments