diff --git a/assets/js/dashboard/filters.js b/assets/js/dashboard/filters.js index 308ca1bc9..cd0010cea 100644 --- a/assets/js/dashboard/filters.js +++ b/assets/js/dashboard/filters.js @@ -1,6 +1,6 @@ import React from 'react'; import { withRouter, Link } from 'react-router-dom' -import { countFilters, formattedFilters, navigateToQuery, removeQueryParam } from './query' +import { countFilters, formattedFilters, navigateToQuery } from './query' import Datamap from 'datamaps' import Transition from "../transition.js"; diff --git a/assets/js/dashboard/query.js b/assets/js/dashboard/query.js index 71bddf47b..b5c30d25c 100644 --- a/assets/js/dashboard/query.js +++ b/assets/js/dashboard/query.js @@ -144,12 +144,6 @@ export function toHuman(query) { } } -export function removeQueryParam(search, parameter) { - const q = new URLSearchParams(search) - q.delete(parameter) - return q.toString() -} - export function eventName(query) { if (query.filters.goal) { if (query.filters.goal.startsWith('Visit ')) {