Skip to content

Commit

Permalink
Fix order alias
Browse files Browse the repository at this point in the history
>
> Co-authored-by: Cesar Quintini <[email protected]>
  • Loading branch information
cregourd committed Mar 5, 2024
1 parent 48ee292 commit 4ef126f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/smart-monkeys-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@premieroctet/next-admin": patch
---

Fix: Order by alias name in list
2 changes: 1 addition & 1 deletion packages/next-admin/src/components/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function List({
pathname: location.pathname,
query: {
...query,
sortColumn: propertyAlias,
sortColumn: property,
sortDirection:
query.sortDirection === "asc" ? "desc" : "asc",
},
Expand Down

0 comments on commit 4ef126f

Please sign in to comment.