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 2c990c4 commit e622cd9Copy full SHA for e622cd9
src/endpoint/utils/add-query-parameters.ts
@@ -16,6 +16,13 @@ export function addQueryParameters(
16
if (name === 'q') {
17
return `q=${params.q!.split(' ').map(encodeURIComponent).join('+')}`
18
}
19
+
20
+ if (Array.isArray(params[name])) {
21
+ return params[name]
22
+ .map((value: string) => `${name}=${encodeURIComponent(value)}`)
23
+ .join('&')
24
+ }
25
26
return `${name}=${encodeURIComponent(params[name])}`
27
})
28
.join('&')}`
0 commit comments