mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-25 18:11:48 +08:00
Merge pull request #10911 from maartenpaauw/bugfix/3.x-csv-export-formatted-state
CSV export formatted state
This commit is contained in:
@@ -88,7 +88,7 @@ trait CanFormatState
|
||||
return $state;
|
||||
}
|
||||
|
||||
public function getFormattedState(): string
|
||||
public function getFormattedState(): ?string
|
||||
{
|
||||
$state = $this->getState();
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ abstract class Exporter
|
||||
$data = [];
|
||||
|
||||
foreach (array_keys($this->columnMap) as $column) {
|
||||
$data[] = $columns[$column]->getState();
|
||||
$data[] = $columns[$column]->getFormattedState();
|
||||
}
|
||||
|
||||
return $data;
|
||||
|
||||
Reference in New Issue
Block a user