diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2021-09-17 16:29:12 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-09-30 20:03:00 +0000 |
commit | 18582f55e72704e61c331467e90de7b023d0b46c (patch) | |
tree | 98baf9a40895b0fedb19f5d739e55ea2592f385b /server/sonar-web/src/main/js/helpers/editions.ts | |
parent | 62b21006de51a5b15819e70f4a0943ab983d2b68 (diff) | |
download | sonarqube-18582f55e72704e61c331467e90de7b023d0b46c.tar.gz sonarqube-18582f55e72704e61c331467e90de7b023d0b46c.zip |
[NO-JIRA] use esbuild for sonar-web
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/editions.ts')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/editions.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/helpers/editions.ts b/server/sonar-web/src/main/js/helpers/editions.ts index f57cfbfd2dc..20a9d626c15 100644 --- a/server/sonar-web/src/main/js/helpers/editions.ts +++ b/server/sonar-web/src/main/js/helpers/editions.ts @@ -17,7 +17,6 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { stringify } from 'querystring'; import { omitNil } from '../helpers/request'; import { Edition, EditionKey } from '../types/editions'; import { SystemUpgrade } from '../types/system'; @@ -64,7 +63,7 @@ export function getEditionUrl( data: { serverId?: string; ncloc?: number; sourceEdition?: EditionKey } ) { let url = edition.homeUrl; - const query = stringify(omitNil(data)); + const query = new URLSearchParams(omitNil(data)).toString(); if (query) { url += '?' + query; } |