Skip to content

Commit a837366

Browse files
committed
fix lint
1 parent d0dfd55 commit a837366

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/hooks/useSearchBulkActions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)