diff --git a/src/components/metrics/CitiesTable.tsx b/src/components/metrics/CitiesTable.tsx index 61624f6a1f..fd628e7fa7 100644 --- a/src/components/metrics/CitiesTable.tsx +++ b/src/components/metrics/CitiesTable.tsx @@ -1,9 +1,6 @@ import MetricsTable, { MetricsTableProps } from './MetricsTable'; import { emptyFilter } from 'lib/filters'; import FilterLink from 'components/common/FilterLink'; - -import TypeIcon from 'components/common/TypeIcon'; -import { useLocale } from 'components/hooks'; import { useMessages } from 'components/hooks'; import { useFormat } from 'components/hooks'; @@ -16,7 +13,9 @@ export function CitiesTable(props: MetricsTableProps) { {country && ( {country} )} diff --git a/src/components/metrics/CountriesTable.tsx b/src/components/metrics/CountriesTable.tsx index 3354c73c87..f4560ae347 100644 --- a/src/components/metrics/CountriesTable.tsx +++ b/src/components/metrics/CountriesTable.tsx @@ -29,7 +29,6 @@ export function CountriesTable({ ...props }: MetricsTableProps) { type="country" metric={formatMessage(labels.visitors)} renderLabel={renderLink} - onDataLoad={handleDataLoad} searchFormattedValues={true} /> ); diff --git a/src/components/metrics/MetricsTable.tsx b/src/components/metrics/MetricsTable.tsx index f8bc4df398..4db599b960 100644 --- a/src/components/metrics/MetricsTable.tsx +++ b/src/components/metrics/MetricsTable.tsx @@ -55,22 +55,8 @@ export function MetricsTable({ const { data, isLoading, isFetched, error } = useWebsiteMetrics( websiteId, - { type, limit, search, ...params }, + { type, limit, search: searchFormattedValues ? undefined : search, ...params }, { - type, - startAt: +startDate, - endAt: +endDate, - url, - referrer, - os, - title, - browser, - device, - country, - region, - city, - limit, - search: (searchFormattedValues) ? undefined : search, retryDelay: delay || DEFAULT_ANIMATION_DURATION, onDataLoad, },