Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
fix: set proper type to QueryParamsList
Browse files Browse the repository at this point in the history
  • Loading branch information
gciotola committed May 30, 2024
1 parent aa3fa48 commit 863f31f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/app/src/components/FormPackingFieldPackages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,9 @@ function InputSelectPackages({
function makePackageQuery(
stockLocationId: string,
hint?: string
): QueryParamsList {
): QueryParamsList<Package> {
return {
fields: {
packages: ['id', 'name', 'width', 'length', 'height', 'unit_of_length']
},
fields: ['id', 'name', 'width', 'length', 'height', 'unit_of_length'],
filters: {
stock_location_id_eq: stockLocationId,
...(!isEmpty(hint) && { name_cont: hint })
Expand Down

0 comments on commit 863f31f

Please sign in to comment.