Skip to content

Commit e7e6ca4

Browse files
committed
Fix: Avoid redundant call to buildExcelFile in csv method
1 parent 53f1aea commit e7e6ca4

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)