File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -662,13 +662,14 @@ function useSearchBulkActions({queryJSON}: UseSearchBulkActionsParams) {
662662 const isGroupExport = ! ! queryJSON ?. groupBy && selectedTransactionsKeys . some ( ( key ) => key . startsWith ( CONST . SEARCH . GROUP_PREFIX ) ) ;
663663 let didFail = false ;
664664 const exportParameters = getCSVExportParameters ( isBasicExport ) ;
665+ const reportIDList = selectedReports . length > 0 ? selectedReportIDs : selectedTransactionReportIDs ;
665666 await exportSearchItemsToCSV (
666667 {
667668 query : status ,
668669 jsonQuery : isGroupExport
669670 ? serializeQueryJSONForBackend ( addSelectedGroupsFilter ( queryJSON , selectedTransactions , currentSearchResults ?. data ) )
670671 : exportParameters . jsonQuery ,
671- reportIDList : isGroupExport ? [ ] : ( selectedReports . length > 0 ? selectedReportIDs : selectedTransactionReportIDs ) ,
672+ reportIDList : isGroupExport ? [ ] : reportIDList ,
672673 transactionIDList : isGroupExport ? [ ] : selectedTransactionsKeys ,
673674 isBasicExport : exportParameters . isBasicExport ,
674675 exportColumnLabels : exportParameters . exportColumnLabels ,
You can’t perform that action at this time.
0 commit comments