Skip to content

Commit

Permalink
update (#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmamaqi authored Sep 19, 2024
1 parent 9bea5eb commit 37f7b19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/wiki/src/openapi/openapiFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ const resolveUrl = (
queryParams: Record<string, string> = {},
pathParams: Record<string, string> = {}
) => {
let query = new URLSearchParams(queryParams).toString()
let query = buildQueryString(queryParams)

if (query) query = `?${query}`
return url.replace(/\{\w*\}/g, (key) => pathParams[key.slice(1, -1)]) + query
}

0 comments on commit 37f7b19

Please sign in to comment.