Skip to content

Commit

Permalink
fix - not passing query params from url string
Browse files Browse the repository at this point in the history
  • Loading branch information
revomhere committed Dec 18, 2023
1 parent 3603765 commit 772cf53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/fetcher/src/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class Fetcher {
...(opts || {}),
query: {
...opts?.query,
...extractQueryParams(endpoint),
...(endpoint.includes('?') && extractQueryParams(endpoint)),
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion packages/fetcher/src/fether-standalone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const performRequest = async <T>(
...(opts || {}),
query: {
...opts?.query,
...extractQueryParams(u.toString()),
...(u.toString()?.includes('?') && extractQueryParams(u.toString())),
},
},
})
Expand Down

0 comments on commit 772cf53

Please sign in to comment.