diff --git a/src/components/metrics/FilterTags.tsx b/src/components/metrics/FilterTags.tsx index 140385f5..1b168a28 100644 --- a/src/components/metrics/FilterTags.tsx +++ b/src/components/metrics/FilterTags.tsx @@ -19,11 +19,11 @@ export function FilterTags({ params }) { } function handleCloseFilter(param?: string) { - if (!param) { - router.push(makeUrl({ view }, true)); - } else { - router.push(makeUrl({ [param]: undefined })); - } + router.push(makeUrl({ [param]: undefined })); + } + + function handleResetFilter() { + router.push(makeUrl({ view }, true)); } return ( @@ -44,7 +44,7 @@ export function FilterTags({ params }) { ); })} -