Skip to content

Commit 1c5ce46

Browse files
committed
fix callback bug
1 parent b5b567d commit 1c5ce46

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Http/Livewire/LivewireDatatable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ public function resolveAdditionalSelects($column)
278278
return $selects->count() > 1
279279
? new Expression("CONCAT_WS('" . static::SEPARATOR . "' ," .
280280
collect($selects)->map(function ($select) {
281-
return "IF($select, $select, '')";
281+
return "COALESCE($select, '')";
282282
})->join(', ') . ')')
283283
: $selects->first();
284284
}

tests/ColumnTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,9 @@ public function it_returns_width_property_from_column()
168168
'filterView' => null,
169169
'select' => null,
170170
'joins' => null,
171+
171172
'aggregate' => 'group_concat',
172-
'align' => 'left',
173+
'align' => 'left',gch
173174
'preventExport' => null,
174175
'width' => '1em',
175176
'unsortable' => null,

0 commit comments

Comments
 (0)