Skip to content

Commit

Permalink
fix: fix empty search param
Browse files Browse the repository at this point in the history
  • Loading branch information
joaotomaspinheiro committed Jun 26, 2024
1 parent 23d346e commit 999776e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ async function getContainers(
sort: "createdAt",
order: "desc",
category,
locationName: location,
locationName: location || undefined,
},
},
});
Expand Down
2 changes: 1 addition & 1 deletion web/src/routes/backOffice/employees/list/employeesStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ async function getEmployees(
limit: DEFAULT_PAGE_SIZE,
sort,
order,
username,
role,
username: username || undefined,
},
},
});
Expand Down
2 changes: 1 addition & 1 deletion web/src/routes/backOffice/landfills/list/landfillsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function getLandfills(
limit: DEFAULT_PAGE_SIZE,
sort: "createdAt",
order: "desc",
locationName: location,
locationName: location || undefined,
},
},
});
Expand Down
2 changes: 1 addition & 1 deletion web/src/routes/backOffice/routes/list/routesStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function getRoutes(filters: RoutesFilters): Promise<PaginatedRoutes> {
limit: DEFAULT_PAGE_SIZE,
sort: "createdAt",
order: "desc",
name: route,
name: route || undefined,
},
},
});
Expand Down
2 changes: 1 addition & 1 deletion web/src/routes/backOffice/trucks/list/trucksStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async function getTrucks(filters: TrucksFilters): Promise<PaginatedTrucks> {
limit: DEFAULT_PAGE_SIZE,
sort,
order,
licensePlate,
licensePlate: licensePlate || undefined,
},
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async function getWarehouses(
limit: DEFAULT_PAGE_SIZE,
sort,
order,
locationName: location,
locationName: location || undefined,
},
},
});
Expand Down

0 comments on commit 999776e

Please sign in to comment.