Skip to content
This repository was archived by the owner on Feb 14, 2026. It is now read-only.

Commit d4af088

Browse files
Refactor filtering of sortable table columns
1 parent 7c20859 commit d4af088

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Concerns/InteractsWithResources.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Filament\Resources\Pages\ListRecords;
66
use Filament\Schemas\Schema;
7+
use Filament\Tables\Columns\Column;
78
use Filament\Tables\Table;
89

910
trait InteractsWithResources
@@ -42,6 +43,6 @@ public function getResourceTableColumns(): array
4243

4344
public function getResourceSortableTableColumns(): array
4445
{
45-
return array_filter($this->getResourceTableColumns(), fn ($column) => $column->isSortable());
46+
return array_filter($this->getResourceTableColumns(), fn (Column $column) => $column->isSortable());
4647
}
4748
}

0 commit comments

Comments
 (0)