mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update CanSortRecords.php
This commit is contained in:
@@ -132,7 +132,7 @@ trait CanSortRecords
|
||||
|
||||
$qualifiedKeyName = $query->getModel()->getQualifiedKeyName();
|
||||
|
||||
foreach ($query->toBase()->orders ?? [] as $order) { /** @phpstan-ignore */
|
||||
foreach ($query->toBase()->orders ?? [] as $order) { /** @phpstan-ignore nullCoalesce.property */
|
||||
if (($order['column'] ?? null) === $qualifiedKeyName) {
|
||||
return $query;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user