Commit a2b17339 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'migrate_urlparamtoobject_to_querytoobject_334515' into 'master'

Migrate the deprecated "urlParamsToObject" to "queryToObject"

See merge request gitlab-org/gitlab!65902
parents 93def14e 1d010a6f
import Vue from 'vue';
// eslint-disable-next-line import/no-deprecated
import { urlParamsToObject } from '~/lib/utils/url_utility';
import { queryToObject } from '~/lib/utils/url_utility';
import IssuesAnalytics from './components/issues_analytics.vue';
import store from './stores';
......@@ -19,8 +18,7 @@ export default () => {
} = el.dataset;
// Set default filters from URL
// eslint-disable-next-line import/no-deprecated
const filters = urlParamsToObject(window.location.search);
const filters = queryToObject(window.location.search, { gatherArrays: true });
store.dispatch('issueAnalytics/setFilters', filters);
return new Vue({
......
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