mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 23:35:30 +08:00
fix: ensure default key sort check is not bypassed by existing query orders
This commit is contained in:
@@ -111,7 +111,7 @@ trait CanSortRecords
|
||||
$query = $defaultSort;
|
||||
}
|
||||
|
||||
if (filled($query->getQuery()->orders) && (! $this->getTable()->hasDefaultKeySort())) {
|
||||
if (! $this->getTable()->hasDefaultKeySort()) {
|
||||
return $query;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user