mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 19:45:35 +01:00
Refactor filter handling for queries.
This commit is contained in:
parent
5b300f1ff5
commit
ee6c68d27c
107 changed files with 731 additions and 835 deletions
|
|
@ -73,7 +73,7 @@ export function UTM({ websiteId, startDate, endDate }: UTMProps) {
|
|||
);
|
||||
}
|
||||
|
||||
function toArray(data: { [key: string]: number } = {}) {
|
||||
function toArray(data: Record<string, number> = {}) {
|
||||
return Object.keys(data)
|
||||
.map(key => {
|
||||
return { name: key, value: data[key] };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue