Fixes for country search.

This commit is contained in:
Mike Cao 2024-11-28 16:46:40 -08:00
parent 8925283564
commit 98352628cb
3 changed files with 4 additions and 20 deletions

View file

@ -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,
},