Skip to content

Commit 6d0c1f1

Browse files
authored
Add array check to queryParamsToStringHelper
Added an array check to `queryParamsToStringHelper` so it does not loop all of the element in the array and create separate query parameter for each. Instead the `toString` will be called on the array creating a comma separated string for the query parameter value
1 parent ae6990f commit 6d0c1f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/VsoClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export class VsoClient {
190190
}
191191
let queryString: string = '';
192192

193-
if (typeof(queryParams) !== 'string') {
193+
if (typeof(queryParams) !== 'string' && !Array.isArray(queryParams)) {
194194
for (let property in queryParams) {
195195
if (queryParams.hasOwnProperty(property)) {
196196
const prop = queryParams[property];

0 commit comments

Comments
 (0)