Skip to content

Commit

Permalink
fix: add nullable checking to search field
Browse files Browse the repository at this point in the history
  • Loading branch information
inflab-int committed Mar 3, 2022
1 parent 446a939 commit 1980973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/http/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function createClientFromOperations(resources: IHttpOperation[], defaultC
const httpUrl: IHttpUrl = {
baseUrl,
path: parsedUrl.pathname,
query: parseQueryString(parsedUrl.search.substring(1)) as IHttpNameValues,
query: parseQueryString(parsedUrl.search?.substring(1) || '') as IHttpNameValues,
};

return pipe(
Expand Down

0 comments on commit 1980973

Please sign in to comment.