Commit 146a4fae authored by Siddharth Asthana's avatar Siddharth Asthana

Migrate the deprecated "urlParamsToObject" to "queryToObject"

Changelog: other
EE: true
parent 076b96b6
...@@ -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