We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fdfc01 commit 2401866Copy full SHA for 2401866
src/endpoint/utils/add-query-parameters.ts
@@ -3,7 +3,9 @@ export function addQueryParameters(
3
params: { [param: string]: any; q?: string } = {}
4
): string {
5
const separator = url.includes('?') ? '&' : '?'
6
- const names = Object.keys(params)
+ const names = Object.keys(params).filter(
7
+ (name) => typeof params[name] !== 'undefined'
8
+ )
9
10
if (names.length === 0) {
11
return url
0 commit comments