Commit 0a7ced21 authored by Siddharth Asthana's avatar Siddharth Asthana

Migrate the deprecated "urlParamsToObject" to "queryToObject"

Changelog: other
EE: true
parent c050df26
...@@ -3,8 +3,7 @@ import { GlPagination, GlAlert } from '@gitlab/ui'; ...@@ -3,8 +3,7 @@ import { GlPagination, GlAlert } from '@gitlab/ui';
import Api from '~/api'; import Api from '~/api';
import createFlash, { FLASH_TYPES } from '~/flash'; import createFlash, { FLASH_TYPES } from '~/flash';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
// eslint-disable-next-line import/no-deprecated import { updateHistory, setUrlParams, queryToObject } from '~/lib/utils/url_utility';
import { updateHistory, setUrlParams, urlParamsToObject } from '~/lib/utils/url_utility';
import { __, sprintf } from '~/locale'; import { __, sprintf } from '~/locale';
import Tracking from '~/tracking'; import Tracking from '~/tracking';
...@@ -331,8 +330,7 @@ export default { ...@@ -331,8 +330,7 @@ export default {
*/ */
updateUrl() { updateUrl() {
const { href, search } = window.location; const { href, search } = window.location;
// eslint-disable-next-line import/no-deprecated const queryParams = queryToObject(search, { gatherArrays: true });
const queryParams = urlParamsToObject(search);
const { const {
filterBy, filterBy,
currentPage, currentPage,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment