Skip to content

Commit

Permalink
Merge pull request #191 from yazansalhi/master
Browse files Browse the repository at this point in the history
Fix: Avoid redundant call to buildExcelFile in csv method
  • Loading branch information
yajra authored Jan 18, 2025
2 parents 53f1aea + e7e6ca4 commit 7f3ecd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/DataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ public function csv()
}

// @phpstan-ignore-next-line
return $this->buildExcelFile()->download($path, $this->csvWriter);
return $excelFile->download($path, $this->csvWriter);
}

/**
Expand Down

0 comments on commit 7f3ecd1

Please sign in to comment.