Commit e948d9ca authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'migrate_urlparamtoobject_to_querytoobject_334513' into 'master'

Migrate the deprecated "urlParamsToObject" to "queryToObject"

See merge request gitlab-org/gitlab!65904
parents b6b69f91 0a7ced21
...@@ -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