Commit 1dea45c7 authored by Siddharth Asthana's avatar Siddharth Asthana

Migrate the deprecated "urlParamsToObject" to "queryToObject"

Changelog: other
EE: true
parent fa288857
......@@ -4,8 +4,7 @@ import VueApollo from 'vue-apollo';
import { IssuableStates } from '~/issuable_list/constants';
import createDefaultClient from '~/lib/graphql';
import { parseBoolean, convertObjectPropsToCamelCase } from '~/lib/utils/common_utils';
// eslint-disable-next-line import/no-deprecated
import { urlParamsToObject } from '~/lib/utils/url_utility';
import { queryToObject } from '~/lib/utils/url_utility';
import EpicsListApp from './components/epics_list_root.vue';
......@@ -42,8 +41,7 @@ export default function initEpicsList({ mountPointSelector }) {
isSignedIn,
} = mountPointEl.dataset;
// eslint-disable-next-line import/no-deprecated
const rawFilterParams = urlParamsToObject(window.location.search);
const rawFilterParams = queryToObject(window.location.search, { gatherArrays: true });
const initialFilterParams = {
...convertObjectPropsToCamelCase(rawFilterParams, {
dropKeys: ['scope', 'utf8', 'state', 'sort'], // These keys are unsupported/unnecessary
......
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