Commit 90e88022 authored by Siddharth Asthana's avatar Siddharth Asthana

Migrate the deprecated "urlParamsToObject" to "queryToObject"

Changelog: other
EE: true
parent 8a2b97f7
import FilteredSearchManager from 'ee_else_ce/filtered_search/filtered_search_manager'; import FilteredSearchManager from 'ee_else_ce/filtered_search/filtered_search_manager';
// eslint-disable-next-line import/no-deprecated import { queryToObject } from '~/lib/utils/url_utility';
import { urlParamsToObject } from '~/lib/utils/url_utility';
import { __ } from '~/locale'; import { __ } from '~/locale';
import ProductivityAnalyticsFilteredSearchTokenKeys from './productivity_analytics_filtered_search_token_keys'; import ProductivityAnalyticsFilteredSearchTokenKeys from './productivity_analytics_filtered_search_token_keys';
import store from './store'; import store from './store';
...@@ -24,8 +23,7 @@ export default class FilteredSearchProductivityAnalytics extends FilteredSearchM ...@@ -24,8 +23,7 @@ export default class FilteredSearchProductivityAnalytics extends FilteredSearchM
* Updates filters in productivity analytics store * Updates filters in productivity analytics store
*/ */
updateObject = (path) => { updateObject = (path) => {
// eslint-disable-next-line import/no-deprecated const filters = queryToObject(path, { gatherArrays: true });
const filters = urlParamsToObject(path);
store.dispatch('filters/setFilters', filters); store.dispatch('filters/setFilters', filters);
}; };
} }
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