Commit c9c3690f authored by Siddharth Asthana's avatar Siddharth Asthana

Migrate the deprecated "urlParamsToObject" to "queryToObject"

Changelog: other
EE: true
parent 31a77ba2
...@@ -5,8 +5,7 @@ import Api from '~/api'; ...@@ -5,8 +5,7 @@ import Api from '~/api';
import createFlash from '~/flash'; import createFlash from '~/flash';
import IssuableList from '~/issuable_list/components/issuable_list_root.vue'; import IssuableList from '~/issuable_list/components/issuable_list_root.vue';
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 { s__, __ } from '~/locale'; import { s__, __ } from '~/locale';
import { OPERATOR_IS_ONLY } from '~/vue_shared/components/filtered_search_bar/constants'; import { OPERATOR_IS_ONLY } from '~/vue_shared/components/filtered_search_bar/constants';
...@@ -143,8 +142,7 @@ export default { ...@@ -143,8 +142,7 @@ export default {
}, },
methods: { methods: {
updateUrl() { updateUrl() {
// eslint-disable-next-line import/no-deprecated const queryParams = queryToObject(window.location.search, { gatherArrays: true });
const queryParams = urlParamsToObject(window.location.search);
const { authorUsername, labelName, search } = this.filterParams || {}; const { authorUsername, labelName, search } = this.filterParams || {};
const { currentState, sortedBy, currentPage, prevPageCursor, nextPageCursor } = this; const { currentState, sortedBy, currentPage, prevPageCursor, nextPageCursor } = this;
......
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