From 6d0c1f138ed61c5f24228e3652e33f1bac86b4ce Mon Sep 17 00:00:00 2001 From: Greg Pechiro Date: Tue, 16 Aug 2022 15:47:11 -0400 Subject: [PATCH] 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 --- api/VsoClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/VsoClient.ts b/api/VsoClient.ts index eefca52..37332d5 100644 --- a/api/VsoClient.ts +++ b/api/VsoClient.ts @@ -190,7 +190,7 @@ export class VsoClient { } let queryString: string = ''; - if (typeof(queryParams) !== 'string') { + if (typeof(queryParams) !== 'string' && !Array.isArray(queryParams)) { for (let property in queryParams) { if (queryParams.hasOwnProperty(property)) { const prop = queryParams[property];