Skip to content

Commit

Permalink
refactor: default sort createdAt desc
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalojdias committed May 10, 2024
1 parent ea0b32f commit 1ebb25a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/src/routes/backOffice/employees/list/employeesStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const initialData: PaginatedEmployees = {
export const initialFilters: EmployeesFilters = {
pageIndex: 0,
username: "",
sort: "username",
order: "asc",
sort: "createdAt",
order: "desc",
role: undefined,
};

Expand Down Expand Up @@ -81,6 +81,7 @@ function searchParamsToFilters(
case "username":
case "firstName":
case "lastName":
case "createdAt":
sort = sortParam;
}

Expand Down

0 comments on commit 1ebb25a

Please sign in to comment.