Skip to content

Commit

Permalink
types cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
abzokhattab committed Oct 17, 2024
1 parent e9c58a3 commit d9a13c0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4136,13 +4136,11 @@ function markAsManuallyExported(reportID: string, connectionName: ConnectionName
API.write(WRITE_COMMANDS.MARK_AS_EXPORTED, params, {optimisticData, successData, failureData});
}

type Params = Record<string, ExportReportCSVParams>;

function exportReportToCSV({reportID, transactionIDList}: ExportReportCSVParams, onDownloadFailed: () => void) {
const finalParameters = enhanceParameters(WRITE_COMMANDS.EXPORT_REPORT_TO_CSV, {
reportID,
transactionIDList,
}) as Params;
});

const formData = new FormData();
Object.entries(finalParameters).forEach(([key, value]) => {
Expand Down

0 comments on commit d9a13c0

Please sign in to comment.