Commit b7e3b347 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Merge branch 'migrate_urlparamtoobject_to_querytoobject_334520' into 'master'

Migrate the deprecated "urlParamsToObject" to "queryToObject"

See merge request gitlab-org/gitlab!65895
parents d323d728 146a4fae
...@@ -2,13 +2,11 @@ import Vue from 'vue'; ...@@ -2,13 +2,11 @@ import Vue from 'vue';
import EpicFilteredSearch from 'ee_component/boards/components/epic_filtered_search.vue'; import EpicFilteredSearch from 'ee_component/boards/components/epic_filtered_search.vue';
import store from '~/boards/stores'; import store from '~/boards/stores';
import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils';
// eslint-disable-next-line import/no-deprecated import { queryToObject } from '~/lib/utils/url_utility';
import { urlParamsToObject } from '~/lib/utils/url_utility';
export default (apolloProvider) => { export default (apolloProvider) => {
const el = document.getElementById('js-board-filtered-search'); const el = document.getElementById('js-board-filtered-search');
// eslint-disable-next-line import/no-deprecated const rawFilterParams = queryToObject(window.location.search, { gatherArrays: true });
const rawFilterParams = urlParamsToObject(window.location.search);
const initialFilterParams = { const initialFilterParams = {
...convertObjectPropsToCamelCase(rawFilterParams, {}), ...convertObjectPropsToCamelCase(rawFilterParams, {}),
}; };
......
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