Skip to content

Commit a42ab41

Browse files
committed
return null value for empty/null strings
1 parent 7530ce4 commit a42ab41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jobs/DataTableExportJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function handle()
160160
$format = $column->exportFormat ?? $defaultDateFormat;
161161
break;
162162
case $this->wantsNumeric($column):
163-
$cellValue = floatval($value);
163+
$cellValue = ( trim($value) == '' || is_null($value) ) ? null : floatval($value);
164164
$format = $column->exportFormat;
165165
break;
166166
case CellTypeHelper::isDateTimeOrDateInterval($value):

0 commit comments

Comments
 (0)