Commit fc2cb5d4 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch 'migrate_urlparamtoobject_to_querytoobject_334514' into 'master'

Migrate the deprecated "urlParamsToObject" to "queryToObject"

See merge request gitlab-org/gitlab!65903
parents 6d551f8f 4b2236b9
import { FiltersInfo as FiltersInfoCE } from '~/boards/boards_util';
import { getIdFromGraphQLId } from '~/graphql_shared/utils';
// eslint-disable-next-line import/no-deprecated
import { objectToQuery, urlParamsToObject } from '~/lib/utils/url_utility';
import { objectToQuery, queryToObject } from '~/lib/utils/url_utility';
import {
EPIC_LANE_BASE_HEIGHT,
IterationFilterType,
......@@ -94,8 +93,7 @@ export function formatEpicListsPageInfo(lists) {
export function transformBoardConfig(boardConfig) {
const updatedBoardConfig = {};
// eslint-disable-next-line import/no-deprecated
const passedFilterParams = urlParamsToObject(window.location.search);
const passedFilterParams = queryToObject(window.location.search, { gatherArrays: true });
const updateScopeObject = (key, value = '') => {
if (value === null || value === '') return;
// Comparing with value string because weight can be a number
......
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