Skip to content

Commit 5a60a95

Browse files
committed
bugfix
1 parent 3f9566b commit 5a60a95

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Http/Livewire/LivewireDatatable.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ public function getSelectStatements($withAlias = false, $export = false)
355355
if ($column->isEditable()) {
356356
$column->select = $this->resolveEditableColumnName($column);
357357
}
358-
// ray($column)->red();
359358

360359
return $column;
361360
})->when($withAlias, function ($columns) {
@@ -396,7 +395,7 @@ protected function resolveColumnName($column, $additional = null)
396395
$aggregate = Str::after(($additional ?: $column->name), ':');
397396

398397
if (! method_exists($this->query->getModel(), $relations[0])) {
399-
return $column->name;
398+
return ($additional ?: $column->name);
400399
}
401400

402401
$columnName = array_pop($relations);

0 commit comments

Comments
 (0)