Skip to content

Commit f65c28d

Browse files
authored
Update src/app/Library/CrudPanel/Traits/ColumnsProtectedMethods.php
1 parent 5bf20c0 commit f65c28d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/Library/CrudPanel/Traits/ColumnsProtectedMethods.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function makeSureColumnHasPriority($column)
4747
protected function makeSureColumnHasName($column)
4848
{
4949
if (is_string($column)) {
50-
$column = ['name' => Str::replace(' ', '', $column)];
50+
return ['name' => Str::replace(' ', '', $column)];
5151
}
5252

5353
if (is_array($column) && ! isset($column['name'])) {

0 commit comments

Comments
 (0)