From 5c8c65cff8402a001374d29ef36d4cfca52df374 Mon Sep 17 00:00:00 2001 From: Siddharth Asthana <siddharthasthana31@gmail.com> Date: Sun, 4 Jul 2021 23:21:15 +0530 Subject: [PATCH] Migrate the deprecated "urlParamsToObject" to "queryToObject" Changelog: other MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/65398 --- .../projects/commits/components/author_select.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/projects/commits/components/author_select.vue b/app/assets/javascripts/projects/commits/components/author_select.vue index c862faf9d3c..c8a0a3417f3 100644 --- a/app/assets/javascripts/projects/commits/components/author_select.vue +++ b/app/assets/javascripts/projects/commits/components/author_select.vue @@ -9,8 +9,7 @@ import { } from '@gitlab/ui'; import { debounce } from 'lodash'; import { mapState, mapActions } from 'vuex'; -// eslint-disable-next-line import/no-deprecated -import { redirectTo, urlParamsToObject } from '~/lib/utils/url_utility'; +import { redirectTo, queryToObject } from '~/lib/utils/url_utility'; import { __ } from '~/locale'; const tooltipMessage = __('Searching by both author and message is currently not supported.'); @@ -52,8 +51,7 @@ export default { }, mounted() { this.fetchAuthors(); - // eslint-disable-next-line import/no-deprecated - const params = urlParamsToObject(window.location.search); + const params = queryToObject(window.location.search); const { search: searchParam, author: authorParam } = params; const commitsSearchInput = this.projectCommitsEl.querySelector('#commits-search'); -- 2.30.9