Skip to content

Commit 7f3ecd1

Browse files
authored
Merge pull request #191 from yazansalhi/master
Fix: Avoid redundant call to buildExcelFile in csv method
2 parents 53f1aea + e7e6ca4 commit 7f3ecd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/DataTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ public function csv()
530530
}
531531

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

536536
/**

0 commit comments

Comments
 (0)