From e7e6ca4f61694ac0d2415882c473843677add8bc Mon Sep 17 00:00:00 2001 From: yazansalhi Date: Fri, 17 Jan 2025 06:41:59 -0800 Subject: [PATCH] Fix: Avoid redundant call to buildExcelFile in csv method --- src/Services/DataTable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/DataTable.php b/src/Services/DataTable.php index 786385b..3d2170c 100644 --- a/src/Services/DataTable.php +++ b/src/Services/DataTable.php @@ -530,7 +530,7 @@ public function csv() } // @phpstan-ignore-next-line - return $this->buildExcelFile()->download($path, $this->csvWriter); + return $excelFile->download($path, $this->csvWriter); } /**