Skip to content

Commit

Permalink
update query optional param
Browse files Browse the repository at this point in the history
Co-authored-by: Dawid Rusnak <[email protected]>
  • Loading branch information
haneabogdan and rangoo94 authored Jan 5, 2024
1 parent 753cfce commit 6ebb0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/services/testSuites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const testSuitesApi = createApi({
query: ({id, last = 7, pageSize = 1000}) => {
const queryParams = new URLSearchParams({
// optional field "id"
...(id && id),
...(id ? {id} : null),
last,
pageSize,
});
Expand Down

0 comments on commit 6ebb0ca

Please sign in to comment.