Commit b09ea9f2 authored by Siddharth Asthana's avatar Siddharth Asthana

Migrate the deprecated "urlParamsToObject" to "queryToObject"

Changelog: other
MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/65894
parent df7369e5
<script> <script>
import { GlFilteredSearchToken } from '@gitlab/ui'; import { GlFilteredSearchToken } from '@gitlab/ui';
import { mapState } from 'vuex'; import { mapState } from 'vuex';
// eslint-disable-next-line import/no-deprecated import { getParameterByName, setUrlParams, queryToObject } from '~/lib/utils/url_utility';
import { getParameterByName, setUrlParams, urlParamsToObject } from '~/lib/utils/url_utility';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
import { import {
SEARCH_TOKEN_TYPE, SEARCH_TOKEN_TYPE,
...@@ -68,8 +67,7 @@ export default { ...@@ -68,8 +67,7 @@ export default {
}, },
}, },
created() { created() {
// eslint-disable-next-line import/no-deprecated const query = queryToObject(window.location.search);
const query = urlParamsToObject(window.location.search);
const tokens = this.tokens const tokens = this.tokens
.filter((token) => query[token.type]) .filter((token) => query[token.type])
......
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