Fixed metrics search.

This commit is contained in:
Mike Cao 2024-05-03 23:21:27 -07:00
parent 8be95e32ba
commit 43907bd075
3 changed files with 13 additions and 12 deletions

View file

@ -48,10 +48,14 @@ export function MetricsTable({
const { formatMessage, labels } = useMessages();
const { dir } = useLocale();
const { data, isLoading, isFetched, error } = useWebsiteMetrics(websiteId, type, limit, {
retryDelay: delay || DEFAULT_ANIMATION_DURATION,
onDataLoad,
});
const { data, isLoading, isFetched, error } = useWebsiteMetrics(
websiteId,
{ type, limit, search },
{
retryDelay: delay || DEFAULT_ANIMATION_DURATION,
onDataLoad,
},
);
const filteredData = useMemo(() => {
if (data) {