Skip to content

Commit

Permalink
fix(Table): wrong TableExportType in ExportCsvAsync method (#2588)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArgoZhang authored Dec 15, 2023
1 parent 2782253 commit a1d69a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ private Task ExportAsync() => ExecuteExportAsync(() => OnExportAsync != null
: TableExport.ExportAsync(Rows, GetVisibleColumns()));

private Task ExportCsvAsync() => ExecuteExportAsync(() => OnExportAsync != null
? OnExportAsync(new TableExportDataContext<TItem>(TableExportType.Pdf, Rows, GetVisibleColumns(), BuildQueryPageOptions()))
? OnExportAsync(new TableExportDataContext<TItem>(TableExportType.Csv, Rows, GetVisibleColumns(), BuildQueryPageOptions()))
: TableExport.ExportCsvAsync(Rows, GetVisibleColumns()));

private Task ExportPdfAsync() => ExecuteExportAsync(() => OnExportAsync != null
Expand Down

0 comments on commit a1d69a3

Please sign in to comment.