From f8a72139e96d4b5a346b6e808585eae9210a7b1e Mon Sep 17 00:00:00 2001 From: Dan <619938+mallardduck@users.noreply.github.com> Date: Tue, 1 Mar 2022 09:56:10 -0500 Subject: [PATCH] Ensure correct query type is passed to orderBy --- .../tables/src/Columns/Concerns/InteractsWithTableQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tables/src/Columns/Concerns/InteractsWithTableQuery.php b/packages/tables/src/Columns/Concerns/InteractsWithTableQuery.php index 44487d9f11..d5ea263d67 100644 --- a/packages/tables/src/Columns/Concerns/InteractsWithTableQuery.php +++ b/packages/tables/src/Columns/Concerns/InteractsWithTableQuery.php @@ -95,7 +95,7 @@ trait InteractsWithTableQuery $this->getRelatedModel($query)->query(), $query, $sortColumnName, - ), + )->getQuery(), $direction, ), fn ($query) => $query->orderBy($sortColumnName, $direction),