mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Fixed clear all filters button.
This commit is contained in:
parent
9f73aba900
commit
310cf0b221
@ -19,11 +19,11 @@ export function FilterTags({ params }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleCloseFilter(param?: string) {
|
function handleCloseFilter(param?: string) {
|
||||||
if (!param) {
|
router.push(makeUrl({ [param]: undefined }));
|
||||||
router.push(makeUrl({ view }, true));
|
}
|
||||||
} else {
|
|
||||||
router.push(makeUrl({ [param]: undefined }));
|
function handleResetFilter() {
|
||||||
}
|
router.push(makeUrl({ view }, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -44,7 +44,7 @@ export function FilterTags({ params }) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
<Button size="sm" variant="quiet" onClick={handleCloseFilter}>
|
<Button size="sm" variant="quiet" onClick={handleResetFilter}>
|
||||||
<Icon>
|
<Icon>
|
||||||
<Icons.Close />
|
<Icons.Close />
|
||||||
</Icon>
|
</Icon>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user