mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Fix filter clear all button.
This commit is contained in:
parent
2411aeae8d
commit
8da72a693d
2 changed files with 4 additions and 4 deletions
|
|
@ -23,8 +23,8 @@ export default function usePageQuery() {
|
|||
}, {});
|
||||
}, [search]);
|
||||
|
||||
function resolveUrl(params) {
|
||||
return buildUrl(asPath.split('?')[0], { ...query, ...params });
|
||||
function resolveUrl(params, reset) {
|
||||
return buildUrl(asPath.split('?')[0], { ...(reset ? {} : query), ...params });
|
||||
}
|
||||
|
||||
return { pathname, query, resolveUrl, router };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue